Skip to main content

to_fixed_bytes

Function to_fixed_bytes 

Source
pub fn to_fixed_bytes<const N: usize, T>(
    value: &T,
) -> Result<FixedBytes<N>, Error>
where T: ?Sized + Encode<Binary>,
Expand description

Encode the given value to a fixed-size bytes using the DEFAULT configuration.