Struct rkyv::string::ArchivedString [−][src]
#[repr(transparent)]pub struct ArchivedString(_);
Expand description
Implementations
Extracts a pinned mutable string slice containing the entire ArchivedString.
pub unsafe fn resolve_from_str(
value: &str,
pos: usize,
resolver: StringResolver,
out: *mut Self
)
pub unsafe fn resolve_from_str(
value: &str,
pos: usize,
resolver: StringResolver,
out: *mut Self
)Resolves an archived string from a given str.
Safety
posmust be the position ofoutwithin the archiveresolvermust be the result of serializingvalue
pub fn serialize_from_str<S: Fallible + ?Sized>(
value: &str,
serializer: &mut S
) -> Result<StringResolver, S::Error> where
str: SerializeUnsized<S>,
pub fn serialize_from_str<S: Fallible + ?Sized>(
value: &str,
serializer: &mut S
) -> Result<StringResolver, S::Error> where
str: SerializeUnsized<S>, Serializes an archived string from a given str.
Trait Implementations
type Error = CheckOwnedPointerError<str, C>
type Error = CheckOwnedPointerError<str, C>The error that may result from checking the type.
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>Checks whether the given pointer points to a valid value within the given context. Read more
impl<D: Fallible + ?Sized> Deserialize<String, D> for ArchivedString where
str: DeserializeUnsized<str, D>,
impl<D: Fallible + ?Sized> Deserialize<String, D> for ArchivedString where
str: DeserializeUnsized<str, D>, Deserializes the field type F using the given deserializer.
Deserializes the field type F using the given deserializer.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ArchivedStringimpl Send for ArchivedStringimpl Sync for ArchivedStringimpl Unpin for ArchivedStringimpl UnwindSafe for ArchivedStringBlanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,