Trait rkyv::ser::SharedSerializer[][src]

pub trait SharedSerializer: Serializer {
    fn serialize_shared<T: SerializeUnsized<Self> + ?Sized>(
        &mut self,
        value: &T
    ) -> Result<usize, Self::Error>; }

A serializer that supports serializing shared memory.

This serializer is required by shared pointers to serialize.

Required methods

fn serialize_shared<T: SerializeUnsized<Self> + ?Sized>(
    &mut self,
    value: &T
) -> Result<usize, Self::Error>
[src]

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.

Loading content...

Implementors

impl<S: Serializer> SharedSerializer for SharedSerializerAdapter<S>[src]

Loading content...