Skip to main content

BinaryDecode

Trait BinaryDecode 

Source
pub trait BinaryDecode: Sized {
    // Required method
    fn decode_binary(data: &[u8]) -> Result<Self, Error>;
}
Expand description

Decode a value from PostgreSQL binary format.

Required Methods§

Source

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Decode from PostgreSQL binary representation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BinaryDecode for bool

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Source§

impl BinaryDecode for f32

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Source§

impl BinaryDecode for f64

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Source§

impl BinaryDecode for i8

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Source§

impl BinaryDecode for i16

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Source§

impl BinaryDecode for i32

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Source§

impl BinaryDecode for i64

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Source§

impl BinaryDecode for u32

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Source§

impl BinaryDecode for String

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Source§

impl BinaryDecode for Vec<u8>

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Source§

impl BinaryDecode for [u8; 16]

Source§

fn decode_binary(data: &[u8]) -> Result<Self, Error>

Implementors§