[−][src]Trait bin_codec::DecodeLe
Associated Types
type Context
Required methods
fn decode_offset(
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
Provided methods
Loading content...Implementations on Foreign Types
impl DecodeLe for u8
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for i8
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for u16
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for i16
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for u32
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for i32
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for u64
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for i64
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for u128
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for i128
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for f32
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for f64
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeLe for bool
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
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_offset(
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
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_offset(
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>