Trait binary_layout::prelude::FieldCopyAccess[][src]

pub trait FieldCopyAccess: Field {
    type HighLevelType;
    fn read(storage: &[u8]) -> Self::HighLevelType;
fn write(storage: &mut [u8], v: Self::HighLevelType); }
Expand description

This trait is implemented for fields with “copy access”, i.e. fields that read/write data by copying it from/to the binary blob. Examples of this are primitive types like u8, i32, …

Associated Types

The data type that is returned from read calls and has to be passed in to write calls. This can be different from the primitive type used in the binary blob, since that primitive type can be wrapped (see crate::WrappedField ) into a high level type before being returned from read calls (or vice versa unwrapped when writing).

Required methods

TODO Doc

TODO Doc

Implementors