Skip to main content

Decode

Trait Decode 

Source
pub trait Decode {
    // Required method
    fn decode(&mut self, de: &mut Deserializer<'_>) -> Result<()>;
}
Expand description

Trait for decoding using a deserializer.

Required Methods§

Source

fn decode(&mut self, de: &mut Deserializer<'_>) -> Result<()>

Decode from the deserializer into self.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§