[][src]Trait scroll::ctx::FromCtx

pub trait FromCtx<Ctx: Copy = (), This: ?Sized = [u8]> {
    fn from_ctx(this: &This, ctx: Ctx) -> Self;
}

Reads Self from This using the context Ctx; must not fail

Required methods

fn from_ctx(this: &This, ctx: Ctx) -> Self

Loading content...

Implementations on Foreign Types

impl<'a> FromCtx<Endian, [u8]> for u8[src]

impl<'a, T> FromCtx<Endian, T> for u8 where
    T: AsRef<[u8]>, 
[src]

impl<'a> FromCtx<Endian, [u8]> for i8[src]

impl<'a, T> FromCtx<Endian, T> for i8 where
    T: AsRef<[u8]>, 
[src]

impl<'a> FromCtx<Endian, [u8]> for u16[src]

impl<'a, T> FromCtx<Endian, T> for u16 where
    T: AsRef<[u8]>, 
[src]

impl<'a> FromCtx<Endian, [u8]> for i16[src]

impl<'a, T> FromCtx<Endian, T> for i16 where
    T: AsRef<[u8]>, 
[src]

impl<'a> FromCtx<Endian, [u8]> for u32[src]

impl<'a, T> FromCtx<Endian, T> for u32 where
    T: AsRef<[u8]>, 
[src]

impl<'a> FromCtx<Endian, [u8]> for i32[src]

impl<'a, T> FromCtx<Endian, T> for i32 where
    T: AsRef<[u8]>, 
[src]

impl<'a> FromCtx<Endian, [u8]> for u64[src]

impl<'a, T> FromCtx<Endian, T> for u64 where
    T: AsRef<[u8]>, 
[src]

impl<'a> FromCtx<Endian, [u8]> for i64[src]

impl<'a, T> FromCtx<Endian, T> for i64 where
    T: AsRef<[u8]>, 
[src]

impl<'a> FromCtx<Endian, [u8]> for u128[src]

impl<'a, T> FromCtx<Endian, T> for u128 where
    T: AsRef<[u8]>, 
[src]

impl<'a> FromCtx<Endian, [u8]> for i128[src]

impl<'a, T> FromCtx<Endian, T> for i128 where
    T: AsRef<[u8]>, 
[src]

impl<'a> FromCtx<Endian, [u8]> for f32[src]

impl<'a> FromCtx<Endian, [u8]> for f64[src]

impl FromCtx<Endian, [u8]> for usize[src]

Loading content...

Implementors

Loading content...