Trait zint::Bytes32

source ·
pub trait Bytes32: Sized {
    // Required method
    fn to_bytes32(&self) -> [u8; 32];
}
Expand description

Trait for converting type to bytes32.

Required Methods§

source

fn to_bytes32(&self) -> [u8; 32]

Convert type to the lowest significant bytes 32.

Implementations on Foreign Types§

source§

impl Bytes32 for i8

source§

fn to_bytes32(&self) -> [u8; 32]

source§

impl Bytes32 for u32

source§

fn to_bytes32(&self) -> [u8; 32]

source§

impl Bytes32 for i128

source§

fn to_bytes32(&self) -> [u8; 32]

source§

impl Bytes32 for u8

source§

fn to_bytes32(&self) -> [u8; 32]

source§

impl Bytes32 for u64

source§

fn to_bytes32(&self) -> [u8; 32]

source§

impl Bytes32 for i64

source§

fn to_bytes32(&self) -> [u8; 32]

source§

impl Bytes32 for usize

source§

fn to_bytes32(&self) -> [u8; 32]

source§

impl Bytes32 for u16

source§

fn to_bytes32(&self) -> [u8; 32]

source§

impl Bytes32 for i32

source§

fn to_bytes32(&self) -> [u8; 32]

source§

impl Bytes32 for i16

source§

fn to_bytes32(&self) -> [u8; 32]

source§

impl Bytes32 for u128

source§

fn to_bytes32(&self) -> [u8; 32]

Implementors§