pub trait Bytes32: Sized {
// Required methods
fn to_bytes32(&self) -> [u8; 32];
fn to_vec(&self) -> Vec<u8> ⓘ;
}
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.
Object Safety§
This trait is not object safe.