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<'_>
impl FastDecoder<'_>
fn commit_if_valid<T>(self, value_if_not_past_eof: T) -> Option<T>
fn read_bool(self, probability: u8) -> Option<bool>
fn read_flag(self) -> Option<bool>
fn read_literal(self, n: u8) -> Option<u8>
fn read_optional_signed_value(self, n: u8) -> Option<i32>
fn read_with_tree(self, tree: &[TreeNode], first_node: TreeNode) -> Option<i8>
fn fast_read_bit(&mut self, probability: u8) -> bool
fn fast_read_flag(&mut self) -> bool
fn fast_read_literal(&mut self, n: u8) -> u8
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more