Skip to main content

ToBytes

Trait ToBytes 

Source
pub trait ToBytes {
    // Required method
    fn to_bytes(&self) -> Vec<u8> ;
}

Required Methods§

Source

fn to_bytes(&self) -> Vec<u8>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToBytes for Instr

Source§

fn to_bytes(&self) -> Vec<u8>

Source§

impl ToBytes for u32

Source§

fn to_bytes(&self) -> Vec<u8>

Implementors§