Skip to main content

Decode

Trait Decode 

Source
pub trait Decode {
    type Options: Clone + Send;
    type Item: DeserializeOwned + Send + 'static;

    // Required method
    fn decode(item: &mut Self::Item, options: &Self::Options);
}

Required Associated Types§

Required Methods§

Source

fn decode(item: &mut Self::Item, options: &Self::Options)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§