pub trait Bytes32: Sized {
// Required method
fn to_bytes32(&self) -> [u8; 32];
}Expand description
Trait for converting type to bytes32.
Required Methods§
sourcefn to_bytes32(&self) -> [u8; 32]
fn to_bytes32(&self) -> [u8; 32]
Convert type to the lowest significant bytes 32.