Skip to main content

Decoder

Trait Decoder 

Source
pub trait Decoder<'a, DecodesTo> {
    // Required method
    fn decode(&self, value: &Value) -> Result<DecodesTo, DecodeError>;
}

Required Methods§

Source

fn decode(&self, value: &Value) -> Result<DecodesTo, DecodeError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§