alloy_primitives::aliases

Type Alias B128

Source
pub type B128 = FixedBytes<16>;
Expand description

16-byte fixed byte-array type.

Aliased Type§

struct B128(pub [u8; 16]);

Fields§

§0: [u8; 16]

Trait Implementations§

Source§

impl From<Signed<128, 2>> for B128

Source§

fn from(value: I128) -> Self

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

Source§

impl From<Uint<128, 2>> for B128

Source§

fn from(value: U128) -> Self

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

Source§

impl From<i128> for B128

Source§

fn from(value: i128) -> Self

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

Source§

impl From<u128> for B128

Source§

fn from(value: u128) -> Self

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