Skip to main content

WireEncode

Trait WireEncode 

Source
pub trait WireEncode {
    // Required method
    fn wire_encode(&self, out: &mut Vec<u8>);
}
Expand description

A value that serializes into the shared wire format.

Required Methods§

Source

fn wire_encode(&self, out: &mut Vec<u8>)

Append self’s tagged wire bytes to out.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl WireEncode for String

Source§

fn wire_encode(&self, out: &mut Vec<u8>)

Source§

impl WireEncode for bool

Source§

fn wire_encode(&self, out: &mut Vec<u8>)

Source§

impl WireEncode for f64

Source§

fn wire_encode(&self, out: &mut Vec<u8>)

Source§

impl WireEncode for i64

Source§

fn wire_encode(&self, out: &mut Vec<u8>)

Source§

impl<T: WireEncode + ?Sized> WireEncode for Box<T>

Source§

fn wire_encode(&self, out: &mut Vec<u8>)

Source§

impl<T: WireEncode> WireEncode for Vec<T>

Source§

fn wire_encode(&self, out: &mut Vec<u8>)

Implementors§