[][src]Trait bin_codec::DecodeLe

pub trait DecodeLe: Sized {
type Context;
    fn decode_offset(
        data: &[u8],
        offset: &mut usize,
        sd: &mut ShouldDecode,
        ctx: &mut Self::Context,
        bits: usize
    ) -> Result<Self>;
fn default_bits() -> usize; fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)> { ... } }

Associated Types

type Context

Loading content...

Required methods

fn decode_offset(
    data: &[u8],
    offset: &mut usize,
    sd: &mut ShouldDecode,
    ctx: &mut Self::Context,
    bits: usize
) -> Result<Self>

fn default_bits() -> usize

Loading content...

Provided methods

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>

Loading content...

Implementations on Foreign Types

impl DecodeLe for u8[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for i8[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for u16[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for i16[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for u32[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for i32[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for u64[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for i64[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for u128[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for i128[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for f32[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for f64[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeLe for bool[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl<E: DecodeLe> DecodeLe for Vec<E>[src]

type Context = E::Context

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl<E: DecodeLe> DecodeLe for Option<E>[src]

type Context = E::Context

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

Loading content...

Implementors

Loading content...