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 pointer to the string as a str
.
Returns a mutable reference to the string as a str
.
Emplaces a new inline representation for the given str
.
Safety
- The length of
str
must be less than or equal toINLINE_CAPACITY
. out
must 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
str
must be greater thanINLINE_CAPACITY
. pos
must be the location of the representation within the archive.target
must be the location of the serialized bytes of the string.out
must 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