Type Alias alloy_primitives::aliases::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.