Type Alias B256

Source
pub type B256 = FixedBytes<32>;
Expand description

32-byte fixed byte-array type.

Aliased Type§

struct B256(pub [u8; 32]);

Fields§

§0: [u8; 32]

Trait Implementations§

Source§

impl From<Signed<256, 4>> for B256

Source§

fn from(value: I256) -> Self

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

Source§

impl From<Uint<256, 4>> for B256

Source§

fn from(value: U256) -> Self

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

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 32 bytes