pub trait SizeInBytes {
// Required method
fn size_in_bytes() -> usize;
}
Required Methods§
Sourcefn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the size in bytes.
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.
Implementations on Foreign Types§
Source§impl<E> SizeInBytes for Boolean<E>where
E: Environment,
impl<E> SizeInBytes for Boolean<E>where
E: Environment,
Source§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the boolean size in bytes.
Source§impl<E, I> SizeInBytes for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> SizeInBytes for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the integer size in bytes.