Trait scroll::ctx::TryFromCtx
[−]
[src]
pub trait TryFromCtx<'a, Ctx: Copy = (usize, DefaultCtx), This: ?Sized = [u8]> where Self: 'a + Sized { type Error; fn try_from_ctx(from: &'a This, ctx: Ctx) -> Result<Self, Self::Error>; }
Tries to read Self
from This
using the context Ctx
Associated Types
type Error
Required Methods
fn try_from_ctx(from: &'a This, ctx: Ctx) -> Result<Self, Self::Error>
Implementors
impl<'a> TryFromCtx<'a, (usize, Endian)> for u8 where u8: FromCtx<'a, Endian>
impl<'a, T> TryFromCtx<'a, (usize, Endian), T> for u8 where u8: FromCtx<'a, Endian, T>,
T: AsRef<[u8]>impl<'a> TryFromCtx<'a, (usize, Endian)> for i8 where i8: FromCtx<'a, Endian>
impl<'a, T> TryFromCtx<'a, (usize, Endian), T> for i8 where i8: FromCtx<'a, Endian, T>,
T: AsRef<[u8]>impl<'a> TryFromCtx<'a, (usize, Endian)> for u16 where u16: FromCtx<'a, Endian>
impl<'a, T> TryFromCtx<'a, (usize, Endian), T> for u16 where u16: FromCtx<'a, Endian, T>,
T: AsRef<[u8]>impl<'a> TryFromCtx<'a, (usize, Endian)> for i16 where i16: FromCtx<'a, Endian>
impl<'a, T> TryFromCtx<'a, (usize, Endian), T> for i16 where i16: FromCtx<'a, Endian, T>,
T: AsRef<[u8]>impl<'a> TryFromCtx<'a, (usize, Endian)> for u32 where u32: FromCtx<'a, Endian>
impl<'a, T> TryFromCtx<'a, (usize, Endian), T> for u32 where u32: FromCtx<'a, Endian, T>,
T: AsRef<[u8]>impl<'a> TryFromCtx<'a, (usize, Endian)> for i32 where i32: FromCtx<'a, Endian>
impl<'a, T> TryFromCtx<'a, (usize, Endian), T> for i32 where i32: FromCtx<'a, Endian, T>,
T: AsRef<[u8]>impl<'a> TryFromCtx<'a, (usize, Endian)> for u64 where u64: FromCtx<'a, Endian>
impl<'a, T> TryFromCtx<'a, (usize, Endian), T> for u64 where u64: FromCtx<'a, Endian, T>,
T: AsRef<[u8]>impl<'a> TryFromCtx<'a, (usize, Endian)> for i64 where i64: FromCtx<'a, Endian>
impl<'a, T> TryFromCtx<'a, (usize, Endian), T> for i64 where i64: FromCtx<'a, Endian, T>,
T: AsRef<[u8]>impl<'a> TryFromCtx<'a, (usize, Endian)> for f32 where f32: FromCtx<'a, Endian>
impl<'a> TryFromCtx<'a, (usize, Endian)> for f64 where f64: FromCtx<'a, Endian>
impl<'a> TryFromCtx<'a, (usize, StrCtx)> for &'a str
impl<'a, T> TryFromCtx<'a, (usize, StrCtx), T> for &'a str where T: AsRef<[u8]>
impl<'a> TryFromCtx<'a, (usize, Leb128)> for Uleb128
impl<'a> TryFromCtx<'a, (usize, Leb128)> for Sleb128