Trait SerializeWith
pub trait SerializeWith<F, S>: ArchiveWith<F>{
// Required method
fn serialize_with(
field: &F,
serializer: &mut S,
) -> Result<Self::Resolver, <S as Fallible>::Error> ⓘ;
}
Available on crate feature
dep_rkyv
only.Expand description
A variant of Serialize
for “with” types.
See ArchiveWith for more details.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.