Struct rkyv::ser::adapters::SharedSerializerAdapter [−][src]
pub struct SharedSerializerAdapter<S> { /* fields omitted */ }
Expand description
An adapter that adds shared serialization support to a serializer.
Implementations
Consumes the adapter and returns the underlying serializer.
Trait Implementations
Attempts to write the given bytes to the serializer.
Advances the given number of bytes as padding.
Aligns the position of the serializer to the given alignment.
Aligns the position of the serializer to be suitable to write the given type.
Resolves the given value with its resolver and writes the archived type. Read more
Archives the given object and returns the position it was archived at.
unsafe fn resolve_unsized_aligned<T: ArchiveUnsized + ?Sized>(
&mut self,
value: &T,
to: usize,
metadata_resolver: T::MetadataResolver
) -> Result<usize, Self::Error>
[src]
unsafe fn resolve_unsized_aligned<T: ArchiveUnsized + ?Sized>(
&mut self,
value: &T,
to: usize,
metadata_resolver: T::MetadataResolver
) -> Result<usize, Self::Error>
[src]Resolves the given reference with its resolver and writes the archived reference. Read more
fn serialize_unsized_value<T: SerializeUnsized<Self> + ?Sized>(
&mut self,
value: &T
) -> Result<usize, Self::Error>
[src]
fn serialize_unsized_value<T: SerializeUnsized<Self> + ?Sized>(
&mut self,
value: &T
) -> Result<usize, Self::Error>
[src]Archives a reference to the given object and returns the position it was archived at.
Archives the given shared value and returns its position. If the value has already been serialized then it returns the position of the previously serialized value. Read more
Auto Trait Implementations
impl<S> RefUnwindSafe for SharedSerializerAdapter<S> where
S: RefUnwindSafe,
impl<S> !Send for SharedSerializerAdapter<S>
impl<S> !Sync for SharedSerializerAdapter<S>
impl<S> Unpin for SharedSerializerAdapter<S> where
S: Unpin,
impl<S> UnwindSafe for SharedSerializerAdapter<S> where
S: UnwindSafe,
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