zink::asm

Trait Asm

Source
pub trait Asm: Copy {
    // Required methods
    fn push(self);
    fn bytes32(&self) -> [u8; 32];
}
Expand description

Types implemented this trait are able to be pushed on stack.

Required Methods§

Source

fn push(self)

Push self on the stack.

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Asm for i8

Source§

fn push(self)

Source§

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

Source§

impl Asm for i16

Source§

fn push(self)

Source§

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

Source§

impl Asm for i32

Source§

fn push(self)

Source§

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

Source§

impl Asm for i64

Source§

fn push(self)

Source§

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

Source§

impl Asm for u8

Source§

fn push(self)

Source§

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

Source§

impl Asm for u16

Source§

fn push(self)

Source§

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

Source§

impl Asm for u32

Source§

fn push(self)

Source§

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

Source§

impl Asm for u64

Source§

fn push(self)

Source§

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

Implementors§