pub trait RandomlyConstructable: Sized {
// Required methods
fn zero() -> Self;
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘ;
}Expand description
A sealed trait for types that can be randomly constructed.
Required Methods§
Sourcefn as_mut_bytes(&mut self) -> &mut [u8] ⓘ
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘ
Returns a mutable byte slice of the value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".