Trait scroll::ctx::TryFromCtx[][src]

pub trait TryFromCtx<'a, Ctx: Copy = (), This: ?Sized = [u8]> where
    Self: 'a + Sized
{ type Error; type Size; fn try_from_ctx(
        from: &'a This,
        ctx: Ctx
    ) -> Result<(Self, Self::Size), Self::Error>; }

Tries to read Self from This using the context Ctx

Associated Types

Required Methods

Implementations on Foreign Types

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

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

impl<'a> TryFromCtx<'a, Endian> for i8 where
    i8: FromCtx<Endian>, 
[src]

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

impl<'a> TryFromCtx<'a, Endian> for u16 where
    u16: FromCtx<Endian>, 
[src]

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

impl<'a> TryFromCtx<'a, Endian> for i16 where
    i16: FromCtx<Endian>, 
[src]

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

impl<'a> TryFromCtx<'a, Endian> for u32 where
    u32: FromCtx<Endian>, 
[src]

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

impl<'a> TryFromCtx<'a, Endian> for i32 where
    i32: FromCtx<Endian>, 
[src]

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

impl<'a> TryFromCtx<'a, Endian> for u64 where
    u64: FromCtx<Endian>, 
[src]

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

impl<'a> TryFromCtx<'a, Endian> for i64 where
    i64: FromCtx<Endian>, 
[src]

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

impl<'a> TryFromCtx<'a, Endian> for u128 where
    u128: FromCtx<Endian>, 
[src]

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

impl<'a> TryFromCtx<'a, Endian> for i128 where
    i128: FromCtx<Endian>, 
[src]

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

impl<'a> TryFromCtx<'a, Endian> for f32 where
    f32: FromCtx<Endian>, 
[src]

impl<'a> TryFromCtx<'a, Endian> for f64 where
    f64: FromCtx<Endian>, 
[src]

impl<'a> TryFromCtx<'a, StrCtx> for &'a str
[src]

Read a &str from src using delimiter

impl<'a, T> TryFromCtx<'a, StrCtx, T> for &'a str where
    T: AsRef<[u8]>, 
[src]

impl<'a> TryFromCtx<'a, Endian> for usize where
    usize: FromCtx<Endian>, 
[src]

impl<'a> TryFromCtx<'a, usize> for &'a [u8]
[src]

impl<'a> TryFromCtx<'a> for &'a CStr
[src]

impl<'a> TryFromCtx<'a> for CString
[src]

Implementors