Trait jppe::ByteDecode

source ·
pub trait ByteDecode {
    // Required method
    fn decode<'da, 'db>(
        input: &'da [u8],
        cattr: Option<&'db ContainerAttrModifiers>,
        fattr: Option<&'db FieldAttrModifiers<'_>>
    ) -> JResult<&'da [u8], Self>
       where Self: Sized;
}

Required Methods§

source

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

Implementations on Foreign Types§

source§

impl ByteDecode for IpAddr

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for bool

source§

fn decode<'da, 'db>( input: &'da [u8], _cattr: Option<&'db ContainerAttrModifiers>, _fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for f32

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for f64

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for i8

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for i16

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for i32

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for i64

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for i128

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for isize

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for u8

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for u16

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for u32

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for u64

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for u128

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for usize

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for String

source§

fn decode<'da>( input: &'da [u8], cattr: Option<&ContainerAttrModifiers>, fattr: Option<&FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for Ipv4Addr

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for Ipv6Addr

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl ByteDecode for HashMap<String, String>

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<T> ByteDecode for PhantomData<T>

source§

fn decode<'da, 'db>( input: &'da [u8], _cattr: Option<&'db ContainerAttrModifiers>, _fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>

source§

impl<T> ByteDecode for HashSet<T>
where T: ByteDecode + Hash + Eq,

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

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

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<T: ByteDecode> ByteDecode for Option<T>

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<T: ByteDecode> ByteDecode for Vec<T>

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<t1: ByteDecode> ByteDecode for (t1,)

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<t1: ByteDecode, t2: ByteDecode> ByteDecode for (t1, t2)

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<t1: ByteDecode, t2: ByteDecode, t3: ByteDecode> ByteDecode for (t1, t2, t3)

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<t1: ByteDecode, t2: ByteDecode, t3: ByteDecode, t4: ByteDecode> ByteDecode for (t1, t2, t3, t4)

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<t1: ByteDecode, t2: ByteDecode, t3: ByteDecode, t4: ByteDecode, t5: ByteDecode> ByteDecode for (t1, t2, t3, t4, t5)

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<t1: ByteDecode, t2: ByteDecode, t3: ByteDecode, t4: ByteDecode, t5: ByteDecode, t6: ByteDecode> ByteDecode for (t1, t2, t3, t4, t5, t6)

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<t1: ByteDecode, t2: ByteDecode, t3: ByteDecode, t4: ByteDecode, t5: ByteDecode, t6: ByteDecode, t7: ByteDecode> ByteDecode for (t1, t2, t3, t4, t5, t6, t7)

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<t1: ByteDecode, t2: ByteDecode, t3: ByteDecode, t4: ByteDecode, t5: ByteDecode, t6: ByteDecode, t7: ByteDecode, t8: ByteDecode> ByteDecode for (t1, t2, t3, t4, t5, t6, t7, t8)

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

source§

impl<t1: ByteDecode, t2: ByteDecode, t3: ByteDecode, t4: ByteDecode, t5: ByteDecode, t6: ByteDecode, t7: ByteDecode, t8: ByteDecode, t9: ByteDecode> ByteDecode for (t1, t2, t3, t4, t5, t6, t7, t8, t9)

source§

fn decode<'da, 'db>( input: &'da [u8], cattr: Option<&'db ContainerAttrModifiers>, fattr: Option<&'db FieldAttrModifiers<'_>> ) -> JResult<&'da [u8], Self>
where Self: Sized,

Implementors§