Serialize

Trait Serialize 

Source
pub trait Serialize<'a>: Facet<'a> {
    // Required method
    fn serialize<S: Serializer>(
        &'a self,
        serializer: &mut S,
    ) -> Result<(), S::Error>;
}
Expand description

Extension trait to simplify calling the generic serializer.

Required Methods§

Source

fn serialize<S: Serializer>( &'a self, serializer: &mut S, ) -> Result<(), S::Error>

Serialize this value using the provided Serializer.

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.

Implementors§

Source§

impl<'a, T> Serialize<'a> for T
where T: Facet<'a>,