Trait ReadStruct

Source
pub trait ReadStruct {
    // Required method
    fn read_field<T: StrictDecode>(
        &mut self,
        field: FieldName,
    ) -> Result<T, DecodeError>;
}

Required Methods§

Source

fn read_field<T: StrictDecode>( &mut self, field: FieldName, ) -> Result<T, DecodeError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§