pub trait ExternalLensValue: Sized {
const SIZE: usize;
// Required method
fn read(bytes: &[u8]) -> Self;
}Expand description
Copyable value that can be read from a checked external-account byte lens.
Required Associated Constants§
Required Methods§
Sourcefn read(bytes: &[u8]) -> Self
fn read(bytes: &[u8]) -> Self
Read a value from exactly Self::SIZE bytes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".