Trait rkyv::with::SerializeWith [−][src]
pub trait SerializeWith<F: ?Sized, S: Fallible + ?Sized>: ArchiveWith<F> { fn serialize_with(
field: &F,
serializer: &mut S
) -> Result<Self::Resolver, S::Error>; }
Expand description
A variant of Serialize
that works with With
wrappers.
Required methods
Implementors
impl<F: Serialize<S>, S: Fallible + ?Sized> SerializeWith<Mutex<F>, S> for Lock where
S::Error: From<LockError>,
impl<F: Serialize<S>, S: Fallible + ?Sized> SerializeWith<RwLock<F>, S> for Lock where
S::Error: From<LockError>,
impl<S: Fallible + ?Sized> SerializeWith<OsString, S> for AsString where
S::Error: From<AsStringError>,
str: SerializeUnsized<S>,
impl<S: Fallible + ?Sized> SerializeWith<PathBuf, S> for AsString where
S::Error: From<AsStringError>,
str: SerializeUnsized<S>,