UnmarshalAny

Trait UnmarshalAny 

Source
pub trait UnmarshalAny: MarshalFixed + Default {
    // Required method
    fn unmarshal_fixed(&mut self, arr: &Self::ARRAY);

    // Provided method
    fn unmarshal_fixed_val(arr: &Self::ARRAY) -> Self { ... }
}

Required Methods§

Source

fn unmarshal_fixed(&mut self, arr: &Self::ARRAY)

Provided Methods§

Source

fn unmarshal_fixed_val(arr: &Self::ARRAY) -> 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 UnmarshalAny for u8

Source§

fn unmarshal_fixed(&mut self, arr: &Self::ARRAY)

Source§

fn unmarshal_fixed_val(arr: &Self::ARRAY) -> Self

Source§

impl UnmarshalAny for u16

Source§

fn unmarshal_fixed(&mut self, arr: &Self::ARRAY)

Source§

fn unmarshal_fixed_val(arr: &Self::ARRAY) -> Self

Source§

impl UnmarshalAny for u32

Source§

fn unmarshal_fixed(&mut self, arr: &Self::ARRAY)

Source§

fn unmarshal_fixed_val(arr: &Self::ARRAY) -> Self

Source§

impl UnmarshalAny for u64

Source§

fn unmarshal_fixed(&mut self, arr: &Self::ARRAY)

Source§

fn unmarshal_fixed_val(arr: &Self::ARRAY) -> Self

Source§

impl UnmarshalAny for ()

Source§

fn unmarshal_fixed(&mut self, _: &Self::ARRAY)

Source§

fn unmarshal_fixed_val(_: &Self::ARRAY)

Implementors§