pub trait Item {
// Required methods
fn from_slice(slice: &[u8]) -> Self;
fn zero() -> Self;
}Available on crate feature
utils only.Expand description
Represents items that can be read by an Accessor.
Required Methods§
Sourcefn from_slice(slice: &[u8]) -> Self
fn from_slice(slice: &[u8]) -> Self
Create an object of this type from a byte slice.
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.