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§
Sourcefn decode<D>(&'a self) -> OUTwhere
D: Decode<Target = &'a Self, Output = OUT>,
fn decode<D>(&'a self) -> OUTwhere
D: Decode<Target = &'a Self, Output = OUT>,
Call this method if the value is immutable.
Sourcefn decode_mut<D>(&'a mut self) -> OUTwhere
D: Decode<Target = &'a mut Self, Output = OUT>,
fn decode_mut<D>(&'a mut self) -> OUTwhere
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".