pub trait SerializeWith<F: ?Sized, S: Fallible + ?Sized>: ArchiveWith<F> {
// Required method
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§
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.