pub trait StatBuffer {
    type Buffer: AsMut<[u8]> + AsRef<[u8]> + Copy + Sync;

    // Required methods
    fn buffer() -> Self::Buffer;
    fn sql_type() -> SqlType;
}

Required Associated Types§

source

type Buffer: AsMut<[u8]> + AsRef<[u8]> + Copy + Sync

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl StatBuffer for bool

§

type Buffer = [u8; 1]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

source§

impl StatBuffer for f32

§

type Buffer = [u8; 4]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

source§

impl StatBuffer for f64

§

type Buffer = [u8; 8]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

source§

impl StatBuffer for i8

§

type Buffer = [u8; 1]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

source§

impl StatBuffer for i16

§

type Buffer = [u8; 2]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

source§

impl StatBuffer for i32

§

type Buffer = [u8; 4]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

source§

impl StatBuffer for i64

§

type Buffer = [u8; 8]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

source§

impl StatBuffer for u8

§

type Buffer = [u8; 1]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

source§

impl StatBuffer for u16

§

type Buffer = [u8; 2]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

source§

impl StatBuffer for u32

§

type Buffer = [u8; 4]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

source§

impl StatBuffer for u64

§

type Buffer = [u8; 8]

source§

fn buffer() -> Self::Buffer

source§

fn sql_type() -> SqlType

Implementors§