Union rkyv::string::repr::ArchivedStringRepr [−][src]
pub union ArchivedStringRepr {
// some fields omitted
}Expand description
An archived string representation that can inline short strings.
Implementations
Returns a mutable pointer to the bytes of the string.
Returns a slice of the bytes of the string.
Returns a mutable slice of the bytes of the string.
Returns a mutable reference to the string as a str.
Emplaces a new inline representation for the given str.
Safety
- The length of
strmust be less than or equal toINLINE_CAPACITY. outmust point to a valid location to write the inline representation.
Rmplaces a new out-of-line representation for the given str.
Safety
- The length of
strmust be greater thanINLINE_CAPACITY. posmust be the location of the representation within the archive.targetmust be the location of the serialized bytes of the string.outmust point to a valid location to write the out-of-line representation.
Auto Trait Implementations
impl RefUnwindSafe for ArchivedStringRepr
impl Send for ArchivedStringRepr
impl Sync for ArchivedStringRepr
impl Unpin for ArchivedStringRepr
impl UnwindSafe for ArchivedStringRepr
Blanket 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