pub struct RefPeeker<'a, B: ?Sized> { /* private fields */ }Expand description
A peeker for reading from a buffer without advancing the original buffer’s cursor.
RefPeeker provides a non-destructive way to examine buffer contents by maintaining
its own independent cursor position. This is particularly useful when you need to:
- Look ahead in a buffer before deciding how to process the data
- Parse data that might need to be rolled back
- Implement backtracking algorithms
- Share read access to the same buffer data from different positions
The peeker can be constrained to a specific range within the buffer, making it safe for parsing operations that should not read beyond certain boundaries.
§Examples
use bufkit::{Chunk, RefPeeker};
let data = b"Hello, World!";
let buf = &data[..];
let mut peeker = RefPeeker::new(&buf);
// Read without affecting the original buffer
assert_eq!(peeker.read_u8(), b'H');
assert_eq!(peeker.read_u8(), b'e');
assert_eq!(buf.remaining(), 13); // Original buffer unchanged
// Create a constrained peeker for safe parsing
let mut word_peeker = peeker.segment(0..5); // "Hello"
assert_eq!(word_peeker.remaining(), 5);Implementations§
Source§impl<'a, B: 'a + ?Sized> RefPeeker<'a, B>
impl<'a, B: 'a + ?Sized> RefPeeker<'a, B>
Sourcepub const fn new(buf: &'a B) -> Self
pub const fn new(buf: &'a B) -> Self
Creates a new RefPeeker instance with the given buffer.
The peeker starts at the beginning of the buffer’s current position and can read all remaining bytes in the buffer.
§Examples
use bufkit::{Chunk, RefPeeker};
let data = [1, 2, 3, 4, 5];
let buf = &data[..];
let peeker = RefPeeker::new(&buf);
assert_eq!(peeker.remaining(), 5);Sourcepub const fn with_limit(buf: &'a B, limit: usize) -> Self
pub const fn with_limit(buf: &'a B, limit: usize) -> Self
Creates a new RefPeeker constrained to a specific length.
This is useful when you want to ensure the peeker cannot read beyond a certain number of bytes, providing additional safety for parsing operations.
§Examples
use bufkit::{Chunk, RefPeeker};
let data = b"Hello, World!";
let buf = &data[..];
let peeker = RefPeeker::with_limit(&buf, 5); // Only peek first 5 bytes
assert_eq!(peeker.remaining(), 5);Sourcepub fn with_range(buf: &'a B, range: impl RangeBounds<usize>) -> Selfwhere
B: Chunk,
pub fn with_range(buf: &'a B, range: impl RangeBounds<usize>) -> Selfwhere
B: Chunk,
Creates a new RefPeeker with specific start and end bounds.
This provides maximum flexibility in defining the peeker’s range, allowing for more complex parsing scenarios.
§Examples
use core::ops::Bound;
use bufkit::{Chunk, RefPeeker};
let data = b"Hello, World!";
let buf = &data[..];
// Peek from index 2 to 7 (exclusive)
let peeker = RefPeeker::with_range(&buf, 2..7);
assert_eq!(peeker.remaining(), 5);Sourcepub const fn bounds(&self) -> (Bound<usize>, Bound<usize>)
pub const fn bounds(&self) -> (Bound<usize>, Bound<usize>)
Returns the bounds of the peeker.
This is useful for understanding the range within which the peeker can read.
The bounds are represented as a tuple of Bound<usize>, indicating the start
and end positions.
§Examples
use core::ops::Bound;
use bufkit::{Chunk, RefPeeker};
let data = [1, 2, 3, 4, 5];
let buf = &data[..];
let peeker = RefPeeker::with_range(&buf, 1..4);
assert_eq!(peeker.bounds(), (Bound::Included(1), Bound::Excluded(4)));Sourcepub const fn position(&self) -> usize
pub const fn position(&self) -> usize
Returns the current position of the internal cursor relative to the start of the buffer.
This represents how far the peeker’s cursor has advanced from its starting position.
§Examples
use bufkit::{Chunk, RefPeeker};
let data = [1, 2, 3, 4, 5];
let buf = &data[..];
let mut peeker = RefPeeker::new(&buf);
assert_eq!(peeker.position(), 0);
peeker.read_u8();
assert_eq!(peeker.position(), 1);
peeker.advance(2);
assert_eq!(peeker.position(), 3);Sourcepub const fn absolute_position(&self) -> usize
pub const fn absolute_position(&self) -> usize
Returns the absolute position of the peeker’s cursor in the original buffer.
This is useful for understanding where the peeker is currently reading in relation to the entire buffer, especially when the peeker has been advanced or segmented.
§Examples
use bufkit::{Chunk, RefPeeker};
let data = [1, 2, 3, 4, 5];
let buf = &data[..];
let mut peeker = RefPeeker::new(&buf);
let mut seg = peeker.segment(1..4);
seg.advance(2);
assert_eq!(seg.absolute_position(), 3); // 1 (start) + 2 (advanced)
// Resetting the peeker will bring it back to the start position
seg.reset();
assert_eq!(seg.absolute_position(), 1); // Back to the startSourcepub const fn reset(&mut self)
pub const fn reset(&mut self)
Resets the peeker’s cursor to the beginning.
After calling this method, the peeker will start reading from the same position where it was initially created.
§Examples
use bufkit::{Chunk, RefPeeker};
let data = [1, 2, 3, 4, 5];
let buf = &data[..];
let mut peeker = RefPeeker::new(&buf);
peeker.advance(3);
assert_eq!(peeker.position(), 3);
peeker.reset();
assert_eq!(peeker.position(), 0);
assert_eq!(peeker.remaining(), 5);Trait Implementations§
Source§impl<'a, B: 'a + Chunk + ?Sized> Chunk for RefPeeker<'a, B>
impl<'a, B: 'a + Chunk + ?Sized> Chunk for RefPeeker<'a, B>
Source§fn remaining(&self) -> usize
fn remaining(&self) -> usize
Source§fn advance(&mut self, cnt: usize)
fn advance(&mut self, cnt: usize)
Source§fn try_advance(&mut self, cnt: usize) -> Result<(), TryAdvanceError>
fn try_advance(&mut self, cnt: usize) -> Result<(), TryAdvanceError>
Source§fn segment(&self, range: impl RangeBounds<usize>) -> Selfwhere
Self: Sized,
fn segment(&self, range: impl RangeBounds<usize>) -> Selfwhere
Self: Sized,
Source§fn truncate(&mut self, len: usize)
fn truncate(&mut self, len: usize)
len bytes. Read moreSource§fn split_off(&mut self, at: usize) -> Selfwhere
Self: Sized,
fn split_off(&mut self, at: usize) -> Selfwhere
Self: Sized,
Source§fn split_to(&mut self, at: usize) -> Selfwhere
Self: Sized,
fn split_to(&mut self, at: usize) -> Selfwhere
Self: Sized,
Source§fn buffer_from(&self, offset: usize) -> &[u8] ⓘ
fn buffer_from(&self, offset: usize) -> &[u8] ⓘ
Source§fn buffer_from_checked(&self, offset: usize) -> Option<&[u8]>
fn buffer_from_checked(&self, offset: usize) -> Option<&[u8]>
Source§fn prefix(&self, len: usize) -> &[u8] ⓘ
fn prefix(&self, len: usize) -> &[u8] ⓘ
len bytes of the buffer. Read moreSource§fn prefix_checked(&self, len: usize) -> Option<&[u8]>
fn prefix_checked(&self, len: usize) -> Option<&[u8]>
len bytes of the buffer. Read moreSource§fn suffix(&self, len: usize) -> &[u8] ⓘ
fn suffix(&self, len: usize) -> &[u8] ⓘ
len bytes of the buffer. Read moreSource§fn suffix_checked(&self, len: usize) -> Option<&[u8]>
fn suffix_checked(&self, len: usize) -> Option<&[u8]>
len bytes of the buffer. Read moreSource§fn split_off_checked(&mut self, at: usize) -> Option<Self>where
Self: Sized,
fn split_off_checked(&mut self, at: usize) -> Option<Self>where
Self: Sized,
Source§fn try_split_off(&mut self, at: usize) -> Result<Self, OutOfBounds>where
Self: Sized,
fn try_split_off(&mut self, at: usize) -> Result<Self, OutOfBounds>where
Self: Sized,
Source§fn split_to_checked(&mut self, at: usize) -> Option<Self>where
Self: Sized,
fn split_to_checked(&mut self, at: usize) -> Option<Self>where
Self: Sized,
Source§fn try_split_to(&mut self, at: usize) -> Result<Self, OutOfBounds>where
Self: Sized,
fn try_split_to(&mut self, at: usize) -> Result<Self, OutOfBounds>where
Self: Sized,
Source§fn has_remaining(&self) -> bool
fn has_remaining(&self) -> bool
true if there are bytes available for reading in the buffer. Read moreSource§fn try_segment(
&self,
range: impl RangeBounds<usize>,
) -> Result<Self, TrySegmentError>where
Self: Sized,
fn try_segment(
&self,
range: impl RangeBounds<usize>,
) -> Result<Self, TrySegmentError>where
Self: Sized,
Source§fn peek_u16_le(&self) -> u16
fn peek_u16_le(&self) -> u16
u16 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_u16_le_checked(&self) -> Option<u16>
fn peek_u16_le_checked(&self) -> Option<u16>
u16 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u16_le(&self) -> Result<u16, TryPeekError>
fn try_peek_u16_le(&self) -> Result<u16, TryPeekError>
u16 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_u16_be(&self) -> u16
fn peek_u16_be(&self) -> u16
u16 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_u16_be_checked(&self) -> Option<u16>
fn peek_u16_be_checked(&self) -> Option<u16>
u16 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u16_be(&self) -> Result<u16, TryPeekError>
fn try_peek_u16_be(&self) -> Result<u16, TryPeekError>
u16 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_u16_ne(&self) -> u16
fn peek_u16_ne(&self) -> u16
u16 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_u16_ne_checked(&self) -> Option<u16>
fn peek_u16_ne_checked(&self) -> Option<u16>
u16 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u16_ne(&self) -> Result<u16, TryPeekError>
fn try_peek_u16_ne(&self) -> Result<u16, TryPeekError>
u16 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_u16_le_at(&self, offset: usize) -> u16
fn peek_u16_le_at(&self, offset: usize) -> u16
u16 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_u16_le_at_checked(&self, offset: usize) -> Option<u16>
fn peek_u16_le_at_checked(&self, offset: usize) -> Option<u16>
u16 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn try_peek_u16_le_at(&self, offset: usize) -> Result<u16, TryPeekAtError>
fn try_peek_u16_le_at(&self, offset: usize) -> Result<u16, TryPeekAtError>
u16 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_u16_be_at(&self, offset: usize) -> u16
fn peek_u16_be_at(&self, offset: usize) -> u16
u16 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_u16_be_at_checked(&self, offset: usize) -> Option<u16>
fn peek_u16_be_at_checked(&self, offset: usize) -> Option<u16>
u16 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn try_peek_u16_be_at(&self, offset: usize) -> Result<u16, TryPeekAtError>
fn try_peek_u16_be_at(&self, offset: usize) -> Result<u16, TryPeekAtError>
u16 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_u16_ne_at(&self, offset: usize) -> u16
fn peek_u16_ne_at(&self, offset: usize) -> u16
u16 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_u16_ne_at_checked(&self, offset: usize) -> Option<u16>
fn peek_u16_ne_at_checked(&self, offset: usize) -> Option<u16>
u16 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn try_peek_u16_ne_at(&self, offset: usize) -> Result<u16, TryPeekAtError>
fn try_peek_u16_ne_at(&self, offset: usize) -> Result<u16, TryPeekAtError>
u16 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_u32_le(&self) -> u32
fn peek_u32_le(&self) -> u32
u32 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_u32_le_checked(&self) -> Option<u32>
fn peek_u32_le_checked(&self) -> Option<u32>
u32 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u32_le(&self) -> Result<u32, TryPeekError>
fn try_peek_u32_le(&self) -> Result<u32, TryPeekError>
u32 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_u32_be(&self) -> u32
fn peek_u32_be(&self) -> u32
u32 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_u32_be_checked(&self) -> Option<u32>
fn peek_u32_be_checked(&self) -> Option<u32>
u32 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u32_be(&self) -> Result<u32, TryPeekError>
fn try_peek_u32_be(&self) -> Result<u32, TryPeekError>
u32 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_u32_ne(&self) -> u32
fn peek_u32_ne(&self) -> u32
u32 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_u32_ne_checked(&self) -> Option<u32>
fn peek_u32_ne_checked(&self) -> Option<u32>
u32 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u32_ne(&self) -> Result<u32, TryPeekError>
fn try_peek_u32_ne(&self) -> Result<u32, TryPeekError>
u32 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_u32_le_at(&self, offset: usize) -> u32
fn peek_u32_le_at(&self, offset: usize) -> u32
u32 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_u32_le_at_checked(&self, offset: usize) -> Option<u32>
fn peek_u32_le_at_checked(&self, offset: usize) -> Option<u32>
u32 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn try_peek_u32_le_at(&self, offset: usize) -> Result<u32, TryPeekAtError>
fn try_peek_u32_le_at(&self, offset: usize) -> Result<u32, TryPeekAtError>
u32 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_u32_be_at(&self, offset: usize) -> u32
fn peek_u32_be_at(&self, offset: usize) -> u32
u32 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_u32_be_at_checked(&self, offset: usize) -> Option<u32>
fn peek_u32_be_at_checked(&self, offset: usize) -> Option<u32>
u32 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn try_peek_u32_be_at(&self, offset: usize) -> Result<u32, TryPeekAtError>
fn try_peek_u32_be_at(&self, offset: usize) -> Result<u32, TryPeekAtError>
u32 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_u32_ne_at(&self, offset: usize) -> u32
fn peek_u32_ne_at(&self, offset: usize) -> u32
u32 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_u32_ne_at_checked(&self, offset: usize) -> Option<u32>
fn peek_u32_ne_at_checked(&self, offset: usize) -> Option<u32>
u32 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn try_peek_u32_ne_at(&self, offset: usize) -> Result<u32, TryPeekAtError>
fn try_peek_u32_ne_at(&self, offset: usize) -> Result<u32, TryPeekAtError>
u32 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_u64_le(&self) -> u64
fn peek_u64_le(&self) -> u64
u64 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_u64_le_checked(&self) -> Option<u64>
fn peek_u64_le_checked(&self) -> Option<u64>
u64 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u64_le(&self) -> Result<u64, TryPeekError>
fn try_peek_u64_le(&self) -> Result<u64, TryPeekError>
u64 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_u64_be(&self) -> u64
fn peek_u64_be(&self) -> u64
u64 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_u64_be_checked(&self) -> Option<u64>
fn peek_u64_be_checked(&self) -> Option<u64>
u64 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u64_be(&self) -> Result<u64, TryPeekError>
fn try_peek_u64_be(&self) -> Result<u64, TryPeekError>
u64 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_u64_ne(&self) -> u64
fn peek_u64_ne(&self) -> u64
u64 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_u64_ne_checked(&self) -> Option<u64>
fn peek_u64_ne_checked(&self) -> Option<u64>
u64 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u64_ne(&self) -> Result<u64, TryPeekError>
fn try_peek_u64_ne(&self) -> Result<u64, TryPeekError>
u64 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_u64_le_at(&self, offset: usize) -> u64
fn peek_u64_le_at(&self, offset: usize) -> u64
u64 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_u64_le_at_checked(&self, offset: usize) -> Option<u64>
fn peek_u64_le_at_checked(&self, offset: usize) -> Option<u64>
u64 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn try_peek_u64_le_at(&self, offset: usize) -> Result<u64, TryPeekAtError>
fn try_peek_u64_le_at(&self, offset: usize) -> Result<u64, TryPeekAtError>
u64 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_u64_be_at(&self, offset: usize) -> u64
fn peek_u64_be_at(&self, offset: usize) -> u64
u64 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_u64_be_at_checked(&self, offset: usize) -> Option<u64>
fn peek_u64_be_at_checked(&self, offset: usize) -> Option<u64>
u64 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn try_peek_u64_be_at(&self, offset: usize) -> Result<u64, TryPeekAtError>
fn try_peek_u64_be_at(&self, offset: usize) -> Result<u64, TryPeekAtError>
u64 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_u64_ne_at(&self, offset: usize) -> u64
fn peek_u64_ne_at(&self, offset: usize) -> u64
u64 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_u64_ne_at_checked(&self, offset: usize) -> Option<u64>
fn peek_u64_ne_at_checked(&self, offset: usize) -> Option<u64>
u64 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn try_peek_u64_ne_at(&self, offset: usize) -> Result<u64, TryPeekAtError>
fn try_peek_u64_ne_at(&self, offset: usize) -> Result<u64, TryPeekAtError>
u64 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_u128_le(&self) -> u128
fn peek_u128_le(&self) -> u128
u128 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_u128_le_checked(&self) -> Option<u128>
fn peek_u128_le_checked(&self) -> Option<u128>
u128 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u128_le(&self) -> Result<u128, TryPeekError>
fn try_peek_u128_le(&self) -> Result<u128, TryPeekError>
u128 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_u128_be(&self) -> u128
fn peek_u128_be(&self) -> u128
u128 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_u128_be_checked(&self) -> Option<u128>
fn peek_u128_be_checked(&self) -> Option<u128>
u128 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u128_be(&self) -> Result<u128, TryPeekError>
fn try_peek_u128_be(&self) -> Result<u128, TryPeekError>
u128 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_u128_ne(&self) -> u128
fn peek_u128_ne(&self) -> u128
u128 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_u128_ne_checked(&self) -> Option<u128>
fn peek_u128_ne_checked(&self) -> Option<u128>
u128 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn try_peek_u128_ne(&self) -> Result<u128, TryPeekError>
fn try_peek_u128_ne(&self) -> Result<u128, TryPeekError>
u128 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_u128_le_at(&self, offset: usize) -> u128
fn peek_u128_le_at(&self, offset: usize) -> u128
u128 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_u128_le_at_checked(&self, offset: usize) -> Option<u128>
fn peek_u128_le_at_checked(&self, offset: usize) -> Option<u128>
u128 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn try_peek_u128_le_at(&self, offset: usize) -> Result<u128, TryPeekAtError>
fn try_peek_u128_le_at(&self, offset: usize) -> Result<u128, TryPeekAtError>
u128 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_u128_be_at(&self, offset: usize) -> u128
fn peek_u128_be_at(&self, offset: usize) -> u128
u128 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_u128_be_at_checked(&self, offset: usize) -> Option<u128>
fn peek_u128_be_at_checked(&self, offset: usize) -> Option<u128>
u128 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn try_peek_u128_be_at(&self, offset: usize) -> Result<u128, TryPeekAtError>
fn try_peek_u128_be_at(&self, offset: usize) -> Result<u128, TryPeekAtError>
u128 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_u128_ne_at(&self, offset: usize) -> u128
fn peek_u128_ne_at(&self, offset: usize) -> u128
u128 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_u128_ne_at_checked(&self, offset: usize) -> Option<u128>
fn peek_u128_ne_at_checked(&self, offset: usize) -> Option<u128>
u128 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn try_peek_u128_ne_at(&self, offset: usize) -> Result<u128, TryPeekAtError>
fn try_peek_u128_ne_at(&self, offset: usize) -> Result<u128, TryPeekAtError>
u128 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_i16_le(&self) -> i16
fn peek_i16_le(&self) -> i16
i16 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_i16_le_checked(&self) -> Option<i16>
fn peek_i16_le_checked(&self) -> Option<i16>
i16 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i16_le(&self) -> Result<i16, TryPeekError>
fn try_peek_i16_le(&self) -> Result<i16, TryPeekError>
i16 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_i16_be(&self) -> i16
fn peek_i16_be(&self) -> i16
i16 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_i16_be_checked(&self) -> Option<i16>
fn peek_i16_be_checked(&self) -> Option<i16>
i16 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i16_be(&self) -> Result<i16, TryPeekError>
fn try_peek_i16_be(&self) -> Result<i16, TryPeekError>
i16 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_i16_ne(&self) -> i16
fn peek_i16_ne(&self) -> i16
i16 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_i16_ne_checked(&self) -> Option<i16>
fn peek_i16_ne_checked(&self) -> Option<i16>
i16 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i16_ne(&self) -> Result<i16, TryPeekError>
fn try_peek_i16_ne(&self) -> Result<i16, TryPeekError>
i16 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_i16_le_at(&self, offset: usize) -> i16
fn peek_i16_le_at(&self, offset: usize) -> i16
i16 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_i16_le_at_checked(&self, offset: usize) -> Option<i16>
fn peek_i16_le_at_checked(&self, offset: usize) -> Option<i16>
i16 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn try_peek_i16_le_at(&self, offset: usize) -> Result<i16, TryPeekAtError>
fn try_peek_i16_le_at(&self, offset: usize) -> Result<i16, TryPeekAtError>
i16 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_i16_be_at(&self, offset: usize) -> i16
fn peek_i16_be_at(&self, offset: usize) -> i16
i16 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_i16_be_at_checked(&self, offset: usize) -> Option<i16>
fn peek_i16_be_at_checked(&self, offset: usize) -> Option<i16>
i16 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn try_peek_i16_be_at(&self, offset: usize) -> Result<i16, TryPeekAtError>
fn try_peek_i16_be_at(&self, offset: usize) -> Result<i16, TryPeekAtError>
i16 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_i16_ne_at(&self, offset: usize) -> i16
fn peek_i16_ne_at(&self, offset: usize) -> i16
i16 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_i16_ne_at_checked(&self, offset: usize) -> Option<i16>
fn peek_i16_ne_at_checked(&self, offset: usize) -> Option<i16>
i16 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn try_peek_i16_ne_at(&self, offset: usize) -> Result<i16, TryPeekAtError>
fn try_peek_i16_ne_at(&self, offset: usize) -> Result<i16, TryPeekAtError>
i16 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_i32_le(&self) -> i32
fn peek_i32_le(&self) -> i32
i32 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_i32_le_checked(&self) -> Option<i32>
fn peek_i32_le_checked(&self) -> Option<i32>
i32 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i32_le(&self) -> Result<i32, TryPeekError>
fn try_peek_i32_le(&self) -> Result<i32, TryPeekError>
i32 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_i32_be(&self) -> i32
fn peek_i32_be(&self) -> i32
i32 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_i32_be_checked(&self) -> Option<i32>
fn peek_i32_be_checked(&self) -> Option<i32>
i32 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i32_be(&self) -> Result<i32, TryPeekError>
fn try_peek_i32_be(&self) -> Result<i32, TryPeekError>
i32 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_i32_ne(&self) -> i32
fn peek_i32_ne(&self) -> i32
i32 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_i32_ne_checked(&self) -> Option<i32>
fn peek_i32_ne_checked(&self) -> Option<i32>
i32 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i32_ne(&self) -> Result<i32, TryPeekError>
fn try_peek_i32_ne(&self) -> Result<i32, TryPeekError>
i32 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_i32_le_at(&self, offset: usize) -> i32
fn peek_i32_le_at(&self, offset: usize) -> i32
i32 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_i32_le_at_checked(&self, offset: usize) -> Option<i32>
fn peek_i32_le_at_checked(&self, offset: usize) -> Option<i32>
i32 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn try_peek_i32_le_at(&self, offset: usize) -> Result<i32, TryPeekAtError>
fn try_peek_i32_le_at(&self, offset: usize) -> Result<i32, TryPeekAtError>
i32 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_i32_be_at(&self, offset: usize) -> i32
fn peek_i32_be_at(&self, offset: usize) -> i32
i32 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_i32_be_at_checked(&self, offset: usize) -> Option<i32>
fn peek_i32_be_at_checked(&self, offset: usize) -> Option<i32>
i32 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn try_peek_i32_be_at(&self, offset: usize) -> Result<i32, TryPeekAtError>
fn try_peek_i32_be_at(&self, offset: usize) -> Result<i32, TryPeekAtError>
i32 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_i32_ne_at(&self, offset: usize) -> i32
fn peek_i32_ne_at(&self, offset: usize) -> i32
i32 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_i32_ne_at_checked(&self, offset: usize) -> Option<i32>
fn peek_i32_ne_at_checked(&self, offset: usize) -> Option<i32>
i32 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn try_peek_i32_ne_at(&self, offset: usize) -> Result<i32, TryPeekAtError>
fn try_peek_i32_ne_at(&self, offset: usize) -> Result<i32, TryPeekAtError>
i32 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_i64_le(&self) -> i64
fn peek_i64_le(&self) -> i64
i64 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_i64_le_checked(&self) -> Option<i64>
fn peek_i64_le_checked(&self) -> Option<i64>
i64 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i64_le(&self) -> Result<i64, TryPeekError>
fn try_peek_i64_le(&self) -> Result<i64, TryPeekError>
i64 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_i64_be(&self) -> i64
fn peek_i64_be(&self) -> i64
i64 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_i64_be_checked(&self) -> Option<i64>
fn peek_i64_be_checked(&self) -> Option<i64>
i64 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i64_be(&self) -> Result<i64, TryPeekError>
fn try_peek_i64_be(&self) -> Result<i64, TryPeekError>
i64 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_i64_ne(&self) -> i64
fn peek_i64_ne(&self) -> i64
i64 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_i64_ne_checked(&self) -> Option<i64>
fn peek_i64_ne_checked(&self) -> Option<i64>
i64 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i64_ne(&self) -> Result<i64, TryPeekError>
fn try_peek_i64_ne(&self) -> Result<i64, TryPeekError>
i64 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_i64_le_at(&self, offset: usize) -> i64
fn peek_i64_le_at(&self, offset: usize) -> i64
i64 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_i64_le_at_checked(&self, offset: usize) -> Option<i64>
fn peek_i64_le_at_checked(&self, offset: usize) -> Option<i64>
i64 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn try_peek_i64_le_at(&self, offset: usize) -> Result<i64, TryPeekAtError>
fn try_peek_i64_le_at(&self, offset: usize) -> Result<i64, TryPeekAtError>
i64 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_i64_be_at(&self, offset: usize) -> i64
fn peek_i64_be_at(&self, offset: usize) -> i64
i64 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_i64_be_at_checked(&self, offset: usize) -> Option<i64>
fn peek_i64_be_at_checked(&self, offset: usize) -> Option<i64>
i64 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn try_peek_i64_be_at(&self, offset: usize) -> Result<i64, TryPeekAtError>
fn try_peek_i64_be_at(&self, offset: usize) -> Result<i64, TryPeekAtError>
i64 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_i64_ne_at(&self, offset: usize) -> i64
fn peek_i64_ne_at(&self, offset: usize) -> i64
i64 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_i64_ne_at_checked(&self, offset: usize) -> Option<i64>
fn peek_i64_ne_at_checked(&self, offset: usize) -> Option<i64>
i64 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn try_peek_i64_ne_at(&self, offset: usize) -> Result<i64, TryPeekAtError>
fn try_peek_i64_ne_at(&self, offset: usize) -> Result<i64, TryPeekAtError>
i64 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_i128_le(&self) -> i128
fn peek_i128_le(&self) -> i128
i128 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_i128_le_checked(&self) -> Option<i128>
fn peek_i128_le_checked(&self) -> Option<i128>
i128 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i128_le(&self) -> Result<i128, TryPeekError>
fn try_peek_i128_le(&self) -> Result<i128, TryPeekError>
i128 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_i128_be(&self) -> i128
fn peek_i128_be(&self) -> i128
i128 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_i128_be_checked(&self) -> Option<i128>
fn peek_i128_be_checked(&self) -> Option<i128>
i128 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i128_be(&self) -> Result<i128, TryPeekError>
fn try_peek_i128_be(&self) -> Result<i128, TryPeekError>
i128 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_i128_ne(&self) -> i128
fn peek_i128_ne(&self) -> i128
i128 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_i128_ne_checked(&self) -> Option<i128>
fn peek_i128_ne_checked(&self) -> Option<i128>
i128 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn try_peek_i128_ne(&self) -> Result<i128, TryPeekError>
fn try_peek_i128_ne(&self) -> Result<i128, TryPeekError>
i128 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_i128_le_at(&self, offset: usize) -> i128
fn peek_i128_le_at(&self, offset: usize) -> i128
i128 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_i128_le_at_checked(&self, offset: usize) -> Option<i128>
fn peek_i128_le_at_checked(&self, offset: usize) -> Option<i128>
i128 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn try_peek_i128_le_at(&self, offset: usize) -> Result<i128, TryPeekAtError>
fn try_peek_i128_le_at(&self, offset: usize) -> Result<i128, TryPeekAtError>
i128 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_i128_be_at(&self, offset: usize) -> i128
fn peek_i128_be_at(&self, offset: usize) -> i128
i128 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_i128_be_at_checked(&self, offset: usize) -> Option<i128>
fn peek_i128_be_at_checked(&self, offset: usize) -> Option<i128>
i128 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn try_peek_i128_be_at(&self, offset: usize) -> Result<i128, TryPeekAtError>
fn try_peek_i128_be_at(&self, offset: usize) -> Result<i128, TryPeekAtError>
i128 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_i128_ne_at(&self, offset: usize) -> i128
fn peek_i128_ne_at(&self, offset: usize) -> i128
i128 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_i128_ne_at_checked(&self, offset: usize) -> Option<i128>
fn peek_i128_ne_at_checked(&self, offset: usize) -> Option<i128>
i128 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn try_peek_i128_ne_at(&self, offset: usize) -> Result<i128, TryPeekAtError>
fn try_peek_i128_ne_at(&self, offset: usize) -> Result<i128, TryPeekAtError>
i128 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_f32_le(&self) -> f32
fn peek_f32_le(&self) -> f32
f32 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_f32_le_checked(&self) -> Option<f32>
fn peek_f32_le_checked(&self) -> Option<f32>
f32 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn try_peek_f32_le(&self) -> Result<f32, TryPeekError>
fn try_peek_f32_le(&self) -> Result<f32, TryPeekError>
f32 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_f32_be(&self) -> f32
fn peek_f32_be(&self) -> f32
f32 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_f32_be_checked(&self) -> Option<f32>
fn peek_f32_be_checked(&self) -> Option<f32>
f32 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn try_peek_f32_be(&self) -> Result<f32, TryPeekError>
fn try_peek_f32_be(&self) -> Result<f32, TryPeekError>
f32 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_f32_ne(&self) -> f32
fn peek_f32_ne(&self) -> f32
f32 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_f32_ne_checked(&self) -> Option<f32>
fn peek_f32_ne_checked(&self) -> Option<f32>
f32 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn try_peek_f32_ne(&self) -> Result<f32, TryPeekError>
fn try_peek_f32_ne(&self) -> Result<f32, TryPeekError>
f32 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_f32_le_at(&self, offset: usize) -> f32
fn peek_f32_le_at(&self, offset: usize) -> f32
f32 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_f32_le_at_checked(&self, offset: usize) -> Option<f32>
fn peek_f32_le_at_checked(&self, offset: usize) -> Option<f32>
f32 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn try_peek_f32_le_at(&self, offset: usize) -> Result<f32, TryPeekAtError>
fn try_peek_f32_le_at(&self, offset: usize) -> Result<f32, TryPeekAtError>
f32 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_f32_be_at(&self, offset: usize) -> f32
fn peek_f32_be_at(&self, offset: usize) -> f32
f32 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_f32_be_at_checked(&self, offset: usize) -> Option<f32>
fn peek_f32_be_at_checked(&self, offset: usize) -> Option<f32>
f32 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn try_peek_f32_be_at(&self, offset: usize) -> Result<f32, TryPeekAtError>
fn try_peek_f32_be_at(&self, offset: usize) -> Result<f32, TryPeekAtError>
f32 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_f32_ne_at(&self, offset: usize) -> f32
fn peek_f32_ne_at(&self, offset: usize) -> f32
f32 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_f32_ne_at_checked(&self, offset: usize) -> Option<f32>
fn peek_f32_ne_at_checked(&self, offset: usize) -> Option<f32>
f32 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn try_peek_f32_ne_at(&self, offset: usize) -> Result<f32, TryPeekAtError>
fn try_peek_f32_ne_at(&self, offset: usize) -> Result<f32, TryPeekAtError>
f32 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_f64_le(&self) -> f64
fn peek_f64_le(&self) -> f64
f64 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_f64_le_checked(&self) -> Option<f64>
fn peek_f64_le_checked(&self) -> Option<f64>
f64 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn try_peek_f64_le(&self) -> Result<f64, TryPeekError>
fn try_peek_f64_le(&self) -> Result<f64, TryPeekError>
f64 value from the buffer in little-endian byte order without advancing the cursor. Read moreSource§fn peek_f64_be(&self) -> f64
fn peek_f64_be(&self) -> f64
f64 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_f64_be_checked(&self) -> Option<f64>
fn peek_f64_be_checked(&self) -> Option<f64>
f64 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn try_peek_f64_be(&self) -> Result<f64, TryPeekError>
fn try_peek_f64_be(&self) -> Result<f64, TryPeekError>
f64 value from the buffer in big-endian byte order without advancing the cursor. Read moreSource§fn peek_f64_ne(&self) -> f64
fn peek_f64_ne(&self) -> f64
f64 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_f64_ne_checked(&self) -> Option<f64>
fn peek_f64_ne_checked(&self) -> Option<f64>
f64 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn try_peek_f64_ne(&self) -> Result<f64, TryPeekError>
fn try_peek_f64_ne(&self) -> Result<f64, TryPeekError>
f64 value from the buffer in native-endian byte order without advancing the cursor. Read moreSource§fn peek_f64_le_at(&self, offset: usize) -> f64
fn peek_f64_le_at(&self, offset: usize) -> f64
f64 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_f64_le_at_checked(&self, offset: usize) -> Option<f64>
fn peek_f64_le_at_checked(&self, offset: usize) -> Option<f64>
f64 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn try_peek_f64_le_at(&self, offset: usize) -> Result<f64, TryPeekAtError>
fn try_peek_f64_le_at(&self, offset: usize) -> Result<f64, TryPeekAtError>
f64 value from the buffer at the specified offset in little-endian byte order. Read moreSource§fn peek_f64_be_at(&self, offset: usize) -> f64
fn peek_f64_be_at(&self, offset: usize) -> f64
f64 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_f64_be_at_checked(&self, offset: usize) -> Option<f64>
fn peek_f64_be_at_checked(&self, offset: usize) -> Option<f64>
f64 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn try_peek_f64_be_at(&self, offset: usize) -> Result<f64, TryPeekAtError>
fn try_peek_f64_be_at(&self, offset: usize) -> Result<f64, TryPeekAtError>
f64 value from the buffer at the specified offset in big-endian byte order. Read moreSource§fn peek_f64_ne_at(&self, offset: usize) -> f64
fn peek_f64_ne_at(&self, offset: usize) -> f64
f64 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn peek_f64_ne_at_checked(&self, offset: usize) -> Option<f64>
fn peek_f64_ne_at_checked(&self, offset: usize) -> Option<f64>
f64 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn try_peek_f64_ne_at(&self, offset: usize) -> Result<f64, TryPeekAtError>
fn try_peek_f64_ne_at(&self, offset: usize) -> Result<f64, TryPeekAtError>
f64 value from the buffer at the specified offset in native-endian byte order. Read moreSource§fn read_u16_le(&mut self) -> u16
fn read_u16_le(&mut self) -> u16
u16 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_u16_le_checked(&mut self) -> Option<u16>
fn read_u16_le_checked(&mut self) -> Option<u16>
u16 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn try_read_u16_le(&mut self) -> Result<u16, TryReadError>
fn try_read_u16_le(&mut self) -> Result<u16, TryReadError>
u16 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_u16_be(&mut self) -> u16
fn read_u16_be(&mut self) -> u16
u16 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_u16_be_checked(&mut self) -> Option<u16>
fn read_u16_be_checked(&mut self) -> Option<u16>
u16 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn try_read_u16_be(&mut self) -> Result<u16, TryReadError>
fn try_read_u16_be(&mut self) -> Result<u16, TryReadError>
u16 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_u16_ne(&mut self) -> u16
fn read_u16_ne(&mut self) -> u16
u16 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_u16_ne_checked(&mut self) -> Option<u16>
fn read_u16_ne_checked(&mut self) -> Option<u16>
u16 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn try_read_u16_ne(&mut self) -> Result<u16, TryReadError>
fn try_read_u16_ne(&mut self) -> Result<u16, TryReadError>
u16 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_u32_le(&mut self) -> u32
fn read_u32_le(&mut self) -> u32
u32 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_u32_le_checked(&mut self) -> Option<u32>
fn read_u32_le_checked(&mut self) -> Option<u32>
u32 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn try_read_u32_le(&mut self) -> Result<u32, TryReadError>
fn try_read_u32_le(&mut self) -> Result<u32, TryReadError>
u32 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_u32_be(&mut self) -> u32
fn read_u32_be(&mut self) -> u32
u32 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_u32_be_checked(&mut self) -> Option<u32>
fn read_u32_be_checked(&mut self) -> Option<u32>
u32 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn try_read_u32_be(&mut self) -> Result<u32, TryReadError>
fn try_read_u32_be(&mut self) -> Result<u32, TryReadError>
u32 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_u32_ne(&mut self) -> u32
fn read_u32_ne(&mut self) -> u32
u32 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_u32_ne_checked(&mut self) -> Option<u32>
fn read_u32_ne_checked(&mut self) -> Option<u32>
u32 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn try_read_u32_ne(&mut self) -> Result<u32, TryReadError>
fn try_read_u32_ne(&mut self) -> Result<u32, TryReadError>
u32 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_u64_le(&mut self) -> u64
fn read_u64_le(&mut self) -> u64
u64 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_u64_le_checked(&mut self) -> Option<u64>
fn read_u64_le_checked(&mut self) -> Option<u64>
u64 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn try_read_u64_le(&mut self) -> Result<u64, TryReadError>
fn try_read_u64_le(&mut self) -> Result<u64, TryReadError>
u64 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_u64_be(&mut self) -> u64
fn read_u64_be(&mut self) -> u64
u64 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_u64_be_checked(&mut self) -> Option<u64>
fn read_u64_be_checked(&mut self) -> Option<u64>
u64 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn try_read_u64_be(&mut self) -> Result<u64, TryReadError>
fn try_read_u64_be(&mut self) -> Result<u64, TryReadError>
u64 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_u64_ne(&mut self) -> u64
fn read_u64_ne(&mut self) -> u64
u64 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_u64_ne_checked(&mut self) -> Option<u64>
fn read_u64_ne_checked(&mut self) -> Option<u64>
u64 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn try_read_u64_ne(&mut self) -> Result<u64, TryReadError>
fn try_read_u64_ne(&mut self) -> Result<u64, TryReadError>
u64 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_u128_le(&mut self) -> u128
fn read_u128_le(&mut self) -> u128
u128 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_u128_le_checked(&mut self) -> Option<u128>
fn read_u128_le_checked(&mut self) -> Option<u128>
u128 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn try_read_u128_le(&mut self) -> Result<u128, TryReadError>
fn try_read_u128_le(&mut self) -> Result<u128, TryReadError>
u128 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_u128_be(&mut self) -> u128
fn read_u128_be(&mut self) -> u128
u128 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_u128_be_checked(&mut self) -> Option<u128>
fn read_u128_be_checked(&mut self) -> Option<u128>
u128 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn try_read_u128_be(&mut self) -> Result<u128, TryReadError>
fn try_read_u128_be(&mut self) -> Result<u128, TryReadError>
u128 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_u128_ne(&mut self) -> u128
fn read_u128_ne(&mut self) -> u128
u128 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_u128_ne_checked(&mut self) -> Option<u128>
fn read_u128_ne_checked(&mut self) -> Option<u128>
u128 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn try_read_u128_ne(&mut self) -> Result<u128, TryReadError>
fn try_read_u128_ne(&mut self) -> Result<u128, TryReadError>
u128 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_i16_le(&mut self) -> i16
fn read_i16_le(&mut self) -> i16
i16 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_i16_le_checked(&mut self) -> Option<i16>
fn read_i16_le_checked(&mut self) -> Option<i16>
i16 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn try_read_i16_le(&mut self) -> Result<i16, TryReadError>
fn try_read_i16_le(&mut self) -> Result<i16, TryReadError>
i16 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_i16_be(&mut self) -> i16
fn read_i16_be(&mut self) -> i16
i16 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_i16_be_checked(&mut self) -> Option<i16>
fn read_i16_be_checked(&mut self) -> Option<i16>
i16 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn try_read_i16_be(&mut self) -> Result<i16, TryReadError>
fn try_read_i16_be(&mut self) -> Result<i16, TryReadError>
i16 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_i16_ne(&mut self) -> i16
fn read_i16_ne(&mut self) -> i16
i16 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_i16_ne_checked(&mut self) -> Option<i16>
fn read_i16_ne_checked(&mut self) -> Option<i16>
i16 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn try_read_i16_ne(&mut self) -> Result<i16, TryReadError>
fn try_read_i16_ne(&mut self) -> Result<i16, TryReadError>
i16 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_i32_le(&mut self) -> i32
fn read_i32_le(&mut self) -> i32
i32 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_i32_le_checked(&mut self) -> Option<i32>
fn read_i32_le_checked(&mut self) -> Option<i32>
i32 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn try_read_i32_le(&mut self) -> Result<i32, TryReadError>
fn try_read_i32_le(&mut self) -> Result<i32, TryReadError>
i32 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_i32_be(&mut self) -> i32
fn read_i32_be(&mut self) -> i32
i32 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_i32_be_checked(&mut self) -> Option<i32>
fn read_i32_be_checked(&mut self) -> Option<i32>
i32 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn try_read_i32_be(&mut self) -> Result<i32, TryReadError>
fn try_read_i32_be(&mut self) -> Result<i32, TryReadError>
i32 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_i32_ne(&mut self) -> i32
fn read_i32_ne(&mut self) -> i32
i32 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_i32_ne_checked(&mut self) -> Option<i32>
fn read_i32_ne_checked(&mut self) -> Option<i32>
i32 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn try_read_i32_ne(&mut self) -> Result<i32, TryReadError>
fn try_read_i32_ne(&mut self) -> Result<i32, TryReadError>
i32 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_i64_le(&mut self) -> i64
fn read_i64_le(&mut self) -> i64
i64 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_i64_le_checked(&mut self) -> Option<i64>
fn read_i64_le_checked(&mut self) -> Option<i64>
i64 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn try_read_i64_le(&mut self) -> Result<i64, TryReadError>
fn try_read_i64_le(&mut self) -> Result<i64, TryReadError>
i64 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_i64_be(&mut self) -> i64
fn read_i64_be(&mut self) -> i64
i64 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_i64_be_checked(&mut self) -> Option<i64>
fn read_i64_be_checked(&mut self) -> Option<i64>
i64 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn try_read_i64_be(&mut self) -> Result<i64, TryReadError>
fn try_read_i64_be(&mut self) -> Result<i64, TryReadError>
i64 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_i64_ne(&mut self) -> i64
fn read_i64_ne(&mut self) -> i64
i64 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_i64_ne_checked(&mut self) -> Option<i64>
fn read_i64_ne_checked(&mut self) -> Option<i64>
i64 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn try_read_i64_ne(&mut self) -> Result<i64, TryReadError>
fn try_read_i64_ne(&mut self) -> Result<i64, TryReadError>
i64 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_i128_le(&mut self) -> i128
fn read_i128_le(&mut self) -> i128
i128 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_i128_le_checked(&mut self) -> Option<i128>
fn read_i128_le_checked(&mut self) -> Option<i128>
i128 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn try_read_i128_le(&mut self) -> Result<i128, TryReadError>
fn try_read_i128_le(&mut self) -> Result<i128, TryReadError>
i128 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_i128_be(&mut self) -> i128
fn read_i128_be(&mut self) -> i128
i128 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_i128_be_checked(&mut self) -> Option<i128>
fn read_i128_be_checked(&mut self) -> Option<i128>
i128 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn try_read_i128_be(&mut self) -> Result<i128, TryReadError>
fn try_read_i128_be(&mut self) -> Result<i128, TryReadError>
i128 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_i128_ne(&mut self) -> i128
fn read_i128_ne(&mut self) -> i128
i128 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_i128_ne_checked(&mut self) -> Option<i128>
fn read_i128_ne_checked(&mut self) -> Option<i128>
i128 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn try_read_i128_ne(&mut self) -> Result<i128, TryReadError>
fn try_read_i128_ne(&mut self) -> Result<i128, TryReadError>
i128 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_f32_le(&mut self) -> f32
fn read_f32_le(&mut self) -> f32
f32 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_f32_le_checked(&mut self) -> Option<f32>
fn read_f32_le_checked(&mut self) -> Option<f32>
f32 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn try_read_f32_le(&mut self) -> Result<f32, TryReadError>
fn try_read_f32_le(&mut self) -> Result<f32, TryReadError>
f32 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_f32_be(&mut self) -> f32
fn read_f32_be(&mut self) -> f32
f32 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_f32_be_checked(&mut self) -> Option<f32>
fn read_f32_be_checked(&mut self) -> Option<f32>
f32 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn try_read_f32_be(&mut self) -> Result<f32, TryReadError>
fn try_read_f32_be(&mut self) -> Result<f32, TryReadError>
f32 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_f32_ne(&mut self) -> f32
fn read_f32_ne(&mut self) -> f32
f32 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_f32_ne_checked(&mut self) -> Option<f32>
fn read_f32_ne_checked(&mut self) -> Option<f32>
f32 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn try_read_f32_ne(&mut self) -> Result<f32, TryReadError>
fn try_read_f32_ne(&mut self) -> Result<f32, TryReadError>
f32 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_f64_le(&mut self) -> f64
fn read_f64_le(&mut self) -> f64
f64 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_f64_le_checked(&mut self) -> Option<f64>
fn read_f64_le_checked(&mut self) -> Option<f64>
f64 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn try_read_f64_le(&mut self) -> Result<f64, TryReadError>
fn try_read_f64_le(&mut self) -> Result<f64, TryReadError>
f64 value from the buffer in little-endian byte order and advances the cursor. Read moreSource§fn read_f64_be(&mut self) -> f64
fn read_f64_be(&mut self) -> f64
f64 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_f64_be_checked(&mut self) -> Option<f64>
fn read_f64_be_checked(&mut self) -> Option<f64>
f64 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn try_read_f64_be(&mut self) -> Result<f64, TryReadError>
fn try_read_f64_be(&mut self) -> Result<f64, TryReadError>
f64 value from the buffer in big-endian byte order and advances the cursor. Read moreSource§fn read_f64_ne(&mut self) -> f64
fn read_f64_ne(&mut self) -> f64
f64 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn read_f64_ne_checked(&mut self) -> Option<f64>
fn read_f64_ne_checked(&mut self) -> Option<f64>
f64 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn try_read_f64_ne(&mut self) -> Result<f64, TryReadError>
fn try_read_f64_ne(&mut self) -> Result<f64, TryReadError>
f64 value from the buffer in native-endian byte order and advances the cursor. Read moreSource§fn peek_u8(&self) -> u8
fn peek_u8(&self) -> u8
u8 value from the buffer without advancing the internal cursor. Read moreSource§fn peek_u8_checked(&self) -> Option<u8>
fn peek_u8_checked(&self) -> Option<u8>
u8 value from the buffer without advancing the internal cursor. Read moreSource§fn try_peek_u8(&self) -> Result<u8, TryPeekError>
fn try_peek_u8(&self) -> Result<u8, TryPeekError>
u8 value from the buffer without advancing the internal cursor. Read moreSource§fn peek_u8_at(&self, offset: usize) -> u8
fn peek_u8_at(&self, offset: usize) -> u8
u8 value from the buffer at the specified offset without advancing the cursor. Read moreSource§fn peek_u8_at_checked(&self, offset: usize) -> Option<u8>
fn peek_u8_at_checked(&self, offset: usize) -> Option<u8>
u8 value from the buffer at the specified offset without advancing the cursor. Read moreSource§fn try_peek_u8_at(&self, offset: usize) -> Result<u8, TryPeekAtError>
fn try_peek_u8_at(&self, offset: usize) -> Result<u8, TryPeekAtError>
u8 value from the buffer at the specified offset without advancing the cursor. Read moreSource§fn peek_i8_at(&self, offset: usize) -> i8
fn peek_i8_at(&self, offset: usize) -> i8
i8 value from the buffer at the specified offset without advancing the cursor. Read moreSource§fn peek_i8_at_checked(&self, offset: usize) -> Option<i8>
fn peek_i8_at_checked(&self, offset: usize) -> Option<i8>
i8 value from the buffer at the specified offset without advancing the cursor. Read moreSource§fn try_peek_i8_at(&self, offset: usize) -> Result<i8, TryPeekAtError>
fn try_peek_i8_at(&self, offset: usize) -> Result<i8, TryPeekAtError>
i8 value from the buffer at the specified offset without advancing the cursor. Read moreSource§fn read_u8(&mut self) -> u8
fn read_u8(&mut self) -> u8
u8 value from the buffer and advances the internal cursor. Read moreSource§fn read_u8_checked(&mut self) -> Option<u8>
fn read_u8_checked(&mut self) -> Option<u8>
u8 value from the buffer and advances the internal cursor. Read moreSource§fn try_read_u8(&mut self) -> Result<u8, TryReadError>
fn try_read_u8(&mut self) -> Result<u8, TryReadError>
u8 value from the buffer and advances the internal cursor. Read moreSource§fn peek_i8(&self) -> i8
fn peek_i8(&self) -> i8
i8 value from the buffer without advancing the internal cursor. Read moreSource§fn peek_i8_checked(&self) -> Option<i8>
fn peek_i8_checked(&self) -> Option<i8>
i8 value from the buffer without advancing the internal cursor. Read moreSource§fn try_peek_i8(&self) -> Result<i8, TryPeekError>
fn try_peek_i8(&self) -> Result<i8, TryPeekError>
i8 value from the buffer without advancing the internal cursor. Read moreSource§fn read_i8(&mut self) -> i8
fn read_i8(&mut self) -> i8
i8 value from the buffer and advances the internal cursor. Read moreSource§fn read_i8_checked(&mut self) -> Option<i8>
fn read_i8_checked(&mut self) -> Option<i8>
i8 value from the buffer and advances the internal cursor. Read moreSource§fn try_read_i8(&mut self) -> Result<i8, TryReadError>
fn try_read_i8(&mut self) -> Result<i8, TryReadError>
i8 value from the buffer and advances the internal cursor. Read moreSource§fn to_vec(&self) -> Vec<u8> ⓘ
fn to_vec(&self) -> Vec<u8> ⓘ
std or alloc only.Vec<u8> instance. Read moreSource§fn to_bytes(&self) -> Bytes
fn to_bytes(&self) -> Bytes
bytes_1 and (crate features std or alloc) only.Bytes instance. Read moreSource§fn to_bytes_mut(&self) -> BytesMut
fn to_bytes_mut(&self) -> BytesMut
bytes_1 and (crate features std or alloc) only.BytesMut instance. Read moreimpl<'a, B: 'a + ?Sized> Copy for RefPeeker<'a, B>
impl<'a, B: Eq + ?Sized> Eq for RefPeeker<'a, B>
impl<'a, B: ?Sized> StructuralPartialEq for RefPeeker<'a, B>
Auto Trait Implementations§
impl<'a, B> Freeze for RefPeeker<'a, B>where
B: ?Sized,
impl<'a, B> RefUnwindSafe for RefPeeker<'a, B>where
B: RefUnwindSafe + ?Sized,
impl<'a, B> Send for RefPeeker<'a, B>
impl<'a, B> Sync for RefPeeker<'a, B>
impl<'a, B> Unpin for RefPeeker<'a, B>where
B: ?Sized,
impl<'a, B> UnwindSafe for RefPeeker<'a, B>where
B: RefUnwindSafe + ?Sized,
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
Source§impl<T> ChunkExt for Twhere
T: Chunk,
impl<T> ChunkExt for Twhere
T: Chunk,
Source§fn peek_array<const N: usize>(&self) -> [u8; N]
fn peek_array<const N: usize>(&self) -> [u8; N]
Source§fn peek_array_checked<const N: usize>(&self) -> Option<[u8; N]>
fn peek_array_checked<const N: usize>(&self) -> Option<[u8; N]>
Source§fn try_peek_array<const N: usize>(&self) -> Result<[u8; N], TryPeekError>
fn try_peek_array<const N: usize>(&self) -> Result<[u8; N], TryPeekError>
Source§fn peek_array_at<const N: usize>(&self, offset: usize) -> [u8; N]
fn peek_array_at<const N: usize>(&self, offset: usize) -> [u8; N]
Source§fn peek_array_at_checked<const N: usize>(
&self,
offset: usize,
) -> Option<[u8; N]>
fn peek_array_at_checked<const N: usize>( &self, offset: usize, ) -> Option<[u8; N]>
Source§fn try_peek_array_at<const N: usize>(
&self,
offset: usize,
) -> Result<[u8; N], TryPeekAtError>
fn try_peek_array_at<const N: usize>( &self, offset: usize, ) -> Result<[u8; N], TryPeekAtError>
Source§fn read_array<const N: usize>(&mut self) -> [u8; N]
fn read_array<const N: usize>(&mut self) -> [u8; N]
Source§fn read_array_checked<const N: usize>(&mut self) -> Option<[u8; N]>
fn read_array_checked<const N: usize>(&mut self) -> Option<[u8; N]>
Source§fn try_read_array<const N: usize>(&mut self) -> Result<[u8; N], TryReadError>
fn try_read_array<const N: usize>(&mut self) -> Result<[u8; N], TryReadError>
Source§fn peek_varint<V: Varint>(&self) -> Result<(NonZeroUsize, V), DecodeVarintError>
fn peek_varint<V: Varint>(&self) -> Result<(NonZeroUsize, V), DecodeVarintError>
varint only.Source§fn read_varint<V: Varint>(
&mut self,
) -> Result<(NonZeroUsize, V), DecodeVarintError>
fn read_varint<V: Varint>( &mut self, ) -> Result<(NonZeroUsize, V), DecodeVarintError>
varint only.Source§fn try_scan_varint(&mut self) -> Result<NonZeroUsize, DecodeVarintError>
fn try_scan_varint(&mut self) -> Result<NonZeroUsize, DecodeVarintError>
varint only.Source§fn try_scan_varint_at(
&mut self,
offset: usize,
) -> Result<NonZeroUsize, DecodeVarintAtError>
fn try_scan_varint_at( &mut self, offset: usize, ) -> Result<NonZeroUsize, DecodeVarintAtError>
varint only.Source§fn try_consume_varint(&mut self) -> Result<NonZeroUsize, DecodeVarintError>
fn try_consume_varint(&mut self) -> Result<NonZeroUsize, DecodeVarintError>
varint only.