Skip to main content

BinaryEncode

Trait BinaryEncode 

Source
pub trait BinaryEncode {
    // Required method
    fn encode_binary(&self, buf: &mut Vec<u8>);
}
Expand description

Encode a value to PostgreSQL binary format.

Required Methods§

Source

fn encode_binary(&self, buf: &mut Vec<u8>)

Encode self to binary bytes for PostgreSQL.

Implementations on Foreign Types§

Source§

impl BinaryEncode for &str

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for bool

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for f32

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for f64

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for i8

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for i16

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for i32

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for i64

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for str

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for u32

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for String

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for Vec<u8>

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for [u8; 16]

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl BinaryEncode for [u8]

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Source§

impl<T: BinaryEncode> BinaryEncode for Option<T>

Source§

fn encode_binary(&self, buf: &mut Vec<u8>)

Implementors§