Struct BinaryParser

Source
pub struct BinaryParser<'de> { /* private fields */ }

Implementations§

Source§

impl<'de> BinaryParser<'de>

Source

pub fn new(input: &'de [u8], config: Config) -> Self

Source

pub fn input(&self) -> &'de [u8]

Source

pub fn config(&self) -> &Config

Source

pub fn size(&self) -> usize

Source

pub fn bool(&mut self) -> Result<bool>

Source

pub fn i8(&mut self) -> Result<i8>

Source

pub fn i16(&mut self) -> Result<i16>

Source

pub fn i32(&mut self) -> Result<i32>

Source

pub fn i64(&mut self) -> Result<i64>

Source

pub fn i128(&mut self) -> Result<i128>

Source

pub fn u8(&mut self) -> Result<u8>

Source

pub fn u16(&mut self) -> Result<u16>

Source

pub fn u32(&mut self) -> Result<u32>

Source

pub fn u64(&mut self) -> Result<u64>

Source

pub fn u128(&mut self) -> Result<u128>

Source

pub fn f32(&mut self) -> Result<f32>

Source

pub fn f64(&mut self) -> Result<f64>

Source

pub fn char(&mut self) -> Result<char>

Source

pub fn string(&mut self) -> Result<&'de str>

Source

pub fn bytes(&mut self, size: usize) -> Result<&'de [u8]>

Source

pub fn container_size(&mut self) -> Result<usize>

Auto Trait Implementations§

§

impl<'de> Freeze for BinaryParser<'de>

§

impl<'de> RefUnwindSafe for BinaryParser<'de>

§

impl<'de> Send for BinaryParser<'de>

§

impl<'de> Sync for BinaryParser<'de>

§

impl<'de> Unpin for BinaryParser<'de>

§

impl<'de> UnwindSafe for BinaryParser<'de>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.