Trait scroll::ctx::FromCtx

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

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

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> FromCtx<Endian> for f32

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for f64

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for i8

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for i16

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for i32

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for i64

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for i128

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for u8

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for u16

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for u32

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for u64

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

impl<'a> FromCtx<Endian> for u128

source§

fn from_ctx(src: &[u8], le: Endian) -> Self

source§

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

source§

fn from_ctx(src: &T, le: Endian) -> Self

source§

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

source§

fn from_ctx(src: &T, le: Endian) -> Self

source§

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

source§

fn from_ctx(src: &T, le: Endian) -> Self

source§

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

source§

fn from_ctx(src: &T, le: Endian) -> Self

source§

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

source§

fn from_ctx(src: &T, le: Endian) -> Self

source§

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

source§

fn from_ctx(src: &T, le: Endian) -> Self

source§

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

source§

fn from_ctx(src: &T, le: Endian) -> Self

source§

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

source§

fn from_ctx(src: &T, le: Endian) -> Self

source§

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

source§

fn from_ctx(src: &T, le: Endian) -> Self

source§

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

source§

fn from_ctx(src: &T, le: Endian) -> Self

Implementors§