alloy_primitives::aliases

Type Alias B32

Source
pub type B32 = FixedBytes<4>;
Expand description

4-byte fixed byte-array type.

Aliased Type§

struct B32(pub [u8; 4]);

Fields§

§0: [u8; 4]

Trait Implementations§

Source§

impl From<Signed<32, 1>> for B32

Source§

fn from(value: I32) -> Self

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

Source§

impl From<Uint<32, 1>> for B32

Source§

fn from(value: U32) -> Self

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

Source§

impl From<i32> for B32

Source§

fn from(value: i32) -> Self

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

Source§

impl From<u32> for B32

Source§

fn from(value: u32) -> Self

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.