Skip to main content

DecodeExt

Trait DecodeExt 

Source
pub trait DecodeExt<'a, OUT>: Sized {
    // Required methods
    fn decode<D>(&'a self) -> OUT
       where D: Decode<Target = &'a Self, Output = OUT>;
    fn decode_mut<D>(&'a mut self) -> OUT
       where D: Decode<Target = &'a mut Self, Output = OUT>;
}
Expand description

Trait that provides the decode method for any value.

Required Methods§

Source

fn decode<D>(&'a self) -> OUT
where D: Decode<Target = &'a Self, Output = OUT>,

Call this method if the value is immutable.

Source

fn decode_mut<D>(&'a mut self) -> OUT
where D: Decode<Target = &'a mut Self, Output = OUT>,

Call this method if the value is mutable.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<'a, T, OUT> DecodeExt<'a, OUT> for T