Type Alias B8

Source
pub type B8 = FixedBytes<1>;
Expand description

1-byte fixed byte-array type.

Aliased Type§

struct B8(pub [u8; 1]);

Fields§

§0: [u8; 1]

Trait Implementations§

Source§

impl From<Signed<8, 1>> for B8

Source§

fn from(value: I8) -> Self

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

Source§

impl From<Uint<8, 1>> for B8

Source§

fn from(value: U8) -> Self

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

Source§

impl From<i8> for B8

Source§

fn from(value: i8) -> Self

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

Source§

impl From<u8> for B8

Source§

fn from(value: u8) -> 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: 1 byte