Skip to main content

View

Trait View 

Source
pub trait View {
    // Required method
    fn size_in_bytes(&self) -> Result<usize, Error>;
}
Expand description

Trait implemented by Emboss struct and bitfield views.

Required Methods§

Source

fn size_in_bytes(&self) -> Result<usize, Error>

Returns the intrinsic layout size of the structure in bytes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§