Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§