pub trait DeBin: Sized {
    // Required method
    fn de_bin(o: &mut usize, d: &[u8]) -> Result<Self, DeBinErr>;

    // Provided method
    fn deserialize_bin(d: &[u8]) -> Result<Self, DeBinErr> { ... }
}

Required Methods§

source

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Self, DeBinErr>

Provided Methods§

Implementations on Foreign Types§

source§

impl DeBin for char

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Self, DeBinErr>

source§

impl DeBin for String

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<String, DeBinErr>

source§

impl DeBin for u16

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<u16, DeBinErr>

source§

impl<T, E> DeBin for Result<T, E>where T: DeBin, E: DeBin,

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Self, DeBinErr>

source§

impl DeBin for usize

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<usize, DeBinErr>

source§

impl DeBin for u64

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<u64, DeBinErr>

source§

impl<T> DeBin for Vec<T>where T: DeBin,

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Vec<T>, DeBinErr>

source§

impl DeBin for u8

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<u8, DeBinErr>

source§

impl DeBin for bool

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<bool, DeBinErr>

source§

impl<T, const N: usize> DeBin for [T; N]where T: DeBin,

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Self, DeBinErr>

source§

impl DeBin for i32

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<i32, DeBinErr>

source§

impl DeBin for u32

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<u32, DeBinErr>

source§

impl<A, B> DeBin for (A, B)where A: DeBin, B: DeBin,

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<(A, B), DeBinErr>

source§

impl<A, B, C, D> DeBin for (A, B, C, D)where A: DeBin, B: DeBin, C: DeBin, D: DeBin,

source§

impl DeBin for PathBuf

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Self, DeBinErr>

source§

impl<K, V> DeBin for HashMap<K, V>where K: DeBin + Eq + Hash, V: DeBin,

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Self, DeBinErr>

source§

impl<T> DeBin for Option<T>where T: DeBin,

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Option<T>, DeBinErr>

source§

impl DeBin for i64

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<i64, DeBinErr>

source§

impl DeBin for f32

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<f32, DeBinErr>

source§

impl DeBin for OsString

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Self, DeBinErr>

source§

impl DeBin for i16

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<i16, DeBinErr>

source§

impl<T> DeBin for Box<T>where T: DeBin,

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Box<T>, DeBinErr>

source§

impl DeBin for f64

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<f64, DeBinErr>

source§

impl<A, B, C> DeBin for (A, B, C)where A: DeBin, B: DeBin, C: DeBin,

Implementors§