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§
Sourcefn size_in_bytes(&self) -> Result<usize, Error>
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".