Trait rkyv::ser::SeekSerializer[][src]

pub trait SeekSerializer: Serializer {
    fn seek(&mut self, pos: usize) -> Result<(), Self::Error>;

    fn serialize_front<T: Serialize<Self>>(
        &mut self,
        value: &T
    ) -> Result<usize, Self::Error> { ... }
fn serialize_unsized_front<T: SerializeUnsized<Self> + ?Sized>(
        &mut self,
        value: &T
    ) -> Result<usize, Self::Error>
    where
        T::Metadata: Serialize<Self>,
        T::Archived: ArchivePointee<ArchivedMetadata = Archived<T::Metadata>>
, { ... } }
Expand description

A serializer that can seek to an absolute position.

Required methods

Seeks the serializer to the given absolute position.

Provided methods

Archives the given value at the nearest available position. If the serializer is already aligned, it will archive it at the current position.

Archives a reference to the given value at the nearest available position. If the serializer is already aligned, it will archive it at the current position.

Implementors