Struct rkyv::ser::serializers::CompositeSerializer [−][src]
pub struct CompositeSerializer<S = Infallible, C = Infallible, H = Infallible> { /* fields omitted */ }
Expand description
A serializer built from composeable pieces.
Implementations
Creates a new composite serializer from serializer, scratch, and shared components.
Consumes the composite serializer and returns the components.
Consumes the composite serializer and returns the serializer.
The scratch space and shared component are discarded.
Trait Implementations
type Error = CompositeSerializerError<S::Error, C::Error, H::Error>
type Error = CompositeSerializerError<S::Error, C::Error, H::Error>
The error produced by any failing methods.
Allocates scratch space of the requested size. Read more
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
unsafe fn resolve_unsized_aligned<T: ArchiveUnsized + ?Sized>(
&mut self,
value: &T,
to: usize,
metadata_resolver: T::MetadataResolver
) -> Result<usize, Self::Error>
unsafe fn resolve_unsized_aligned<T: ArchiveUnsized + ?Sized>(
&mut self,
value: &T,
to: usize,
metadata_resolver: T::MetadataResolver
) -> Result<usize, Self::Error>
Resolves the given reference with its resolver and writes the archived reference. Read more
Archives the given object and returns the position it was archived at.
fn serialize_unsized_value<T: SerializeUnsized<Self> + ?Sized>(
&mut self,
value: &T
) -> Result<usize, Self::Error>
fn serialize_unsized_value<T: SerializeUnsized<Self> + ?Sized>(
&mut self,
value: &T
) -> Result<usize, Self::Error>
Archives a reference to the given object and returns the position it was archived at.
Gets the position of a previously-added shared pointer. Read more
Adds the position of a shared pointer to the registry.
Gets the position of a previously-added shared value. Read more
Adds the position of a shared value to the registry.
Archives the given shared value and returns its position. If the value has already been added then it returns the position of the previously added value. Read more
Auto Trait Implementations
impl<S, C, H> RefUnwindSafe for CompositeSerializer<S, C, H> where
C: RefUnwindSafe,
H: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, C, H> Send for CompositeSerializer<S, C, H> where
C: Send,
H: Send,
S: Send,
impl<S, C, H> Sync for CompositeSerializer<S, C, H> where
C: Sync,
H: Sync,
S: Sync,
impl<S, C, H> Unpin for CompositeSerializer<S, C, H> where
C: Unpin,
H: Unpin,
S: Unpin,
impl<S, C, H> UnwindSafe for CompositeSerializer<S, C, H> where
C: UnwindSafe,
H: UnwindSafe,
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