Struct FastDecoder

Source
struct FastDecoder<'a> {
    chunks: &'a [[u8; 4]],
    uncommitted_state: State,
    save_state: &'a mut State,
}

Fields§

§chunks: &'a [[u8; 4]]§uncommitted_state: State§save_state: &'a mut State

Implementations§

Source§

impl FastDecoder<'_>

Source

fn commit_if_valid<T>(self, value_if_not_past_eof: T) -> Option<T>

Source

fn read_bool(self, probability: u8) -> Option<bool>

Source

fn read_flag(self) -> Option<bool>

Source

fn read_literal(self, n: u8) -> Option<u8>

Source

fn read_optional_signed_value(self, n: u8) -> Option<i32>

Source

fn read_with_tree(self, tree: &[TreeNode], first_node: TreeNode) -> Option<i8>

Source

fn fast_read_bit(&mut self, probability: u8) -> bool

Source

fn fast_read_flag(&mut self) -> bool

Source

fn fast_read_literal(&mut self, n: u8) -> u8

Source

fn fast_read_with_tree(&mut self, tree: &[TreeNode], node: TreeNode) -> i8

Auto Trait Implementations§

§

impl<'a> Freeze for FastDecoder<'a>

§

impl<'a> RefUnwindSafe for FastDecoder<'a>

§

impl<'a> Send for FastDecoder<'a>

§

impl<'a> Sync for FastDecoder<'a>

§

impl<'a> Unpin for FastDecoder<'a>

§

impl<'a> !UnwindSafe for FastDecoder<'a>

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.