Trait scroll::ctx::FromCtx
[−]
[src]
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
Implementors
impl<'a> FromCtx<Endian> for u8
impl<'a, T> FromCtx<Endian, T> for u8 where
T: AsRef<[u8]>,impl<'a> FromCtx<Endian> for i8
impl<'a, T> FromCtx<Endian, T> for i8 where
T: AsRef<[u8]>,impl<'a> FromCtx<Endian> for u16
impl<'a, T> FromCtx<Endian, T> for u16 where
T: AsRef<[u8]>,impl<'a> FromCtx<Endian> for i16
impl<'a, T> FromCtx<Endian, T> for i16 where
T: AsRef<[u8]>,impl<'a> FromCtx<Endian> for u32
impl<'a, T> FromCtx<Endian, T> for u32 where
T: AsRef<[u8]>,impl<'a> FromCtx<Endian> for i32
impl<'a, T> FromCtx<Endian, T> for i32 where
T: AsRef<[u8]>,impl<'a> FromCtx<Endian> for u64
impl<'a, T> FromCtx<Endian, T> for u64 where
T: AsRef<[u8]>,impl<'a> FromCtx<Endian> for i64
impl<'a, T> FromCtx<Endian, T> for i64 where
T: AsRef<[u8]>,impl<'a> FromCtx<Endian> for f32
impl<'a> FromCtx<Endian> for f64
impl FromCtx<Endian> for usize