Trait BinaryParse

Source
pub trait BinaryParse: Sized {
    // Required method
    fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>;

    // Provided method
    fn binary_parse_mut(&mut self, parser: &mut BinaryParser<'_>) -> Result<()> { ... }
}

Required Methods§

Source

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Provided Methods§

Source

fn binary_parse_mut(&mut self, parser: &mut BinaryParser<'_>) -> Result<()>

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 BinaryParse for bool

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for char

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for f32

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for f64

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for i8

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for i16

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for i32

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for i64

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for i128

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for u8

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for u16

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for u32

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for u64

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for u128

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for ()

Source§

fn binary_parse(_parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl BinaryParse for String

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<K, V> BinaryParse for BTreeMap<K, V>
where K: BinaryParse + Ord, V: BinaryParse,

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>
where Self: Sized,

Source§

impl<K, V> BinaryParse for HashMap<K, V>
where K: BinaryParse + Hash + Eq, V: BinaryParse,

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>
where Self: Sized,

Source§

impl<T1> BinaryParse for (T1,)
where T1: BinaryParse,

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2> BinaryParse for (T1, T2)
where T1: BinaryParse, T2: BinaryParse,

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3> BinaryParse for (T1, T2, T3)
where T1: BinaryParse, T2: BinaryParse, T3: BinaryParse,

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4> BinaryParse for (T1, T2, T3, T4)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5> BinaryParse for (T1, T2, T3, T4, T5)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6> BinaryParse for (T1, T2, T3, T4, T5, T6)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6, T7> BinaryParse for (T1, T2, T3, T4, T5, T6, T7)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8> BinaryParse for (T1, T2, T3, T4, T5, T6, T7, T8)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> BinaryParse for (T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> BinaryParse for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> BinaryParse for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> BinaryParse for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> BinaryParse for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> BinaryParse for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> BinaryParse for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> BinaryParse for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>

Source§

impl<T> BinaryParse for Option<T>
where T: BinaryParse,

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>
where Self: Sized,

Source§

impl<T> BinaryParse for BTreeSet<T>
where T: BinaryParse + Ord,

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>
where Self: Sized,

Source§

impl<T> BinaryParse for Vec<T>
where T: BinaryParse,

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>
where Self: Sized,

Source§

impl<T> BinaryParse for HashSet<T>
where T: BinaryParse + Hash + Eq,

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>
where Self: Sized,

Source§

impl<T, const N: usize> BinaryParse for [T; N]
where T: BinaryParse + Copy,

Source§

fn binary_parse(parser: &mut BinaryParser<'_>) -> Result<Self>
where Self: Sized,

Implementors§

Source§

impl<T, const SIZE: usize> BinaryParse for FixedSizeContainer<T, SIZE>