Trait sqlx_core::io::Encode

source ·
pub trait Encode<'en, Context = ()> {
    // Required method
    fn encode_with(&self, buf: &mut Vec<u8>, context: Context);

    // Provided method
    fn encode(&self, buf: &mut Vec<u8>)
       where Self: Encode<'en, ()> { ... }
}

Required Methods§

source

fn encode_with(&self, buf: &mut Vec<u8>, context: Context)

Provided Methods§

source

fn encode(&self, buf: &mut Vec<u8>)
where Self: Encode<'en, ()>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'en, C> Encode<'en, C> for &[u8]

source§

fn encode_with(&self, buf: &mut Vec<u8>, _: C)

Implementors§