pub struct Segment<'s, I> { /* private fields */ }Expand description
A segment of a crate::Source.
This is where data is actually read from. Each segment keeps track of a few things:
- An initial offset (retrievable via
Segment::initial_offset). - A cursor (retrievable via
Segment::current_offset). - A reference to the source’s data.
§Index op
Like slices, Segments support indexes via usizes or ranges. A few important things to note
about this:
- The value(s) provided should be offsets (see the crate’s top-level documentation for more info and what this means).
- Unlike with a
Segment’s various methods, no validation of the provided offset occurs, potentially leading to a panic.
Implementations§
Source§impl<'s> Segment<'s, u8>
impl<'s> Segment<'s, u8>
Sourcepub fn with_endidness(data: &'s [u8], endidness: Endidness) -> Self
pub fn with_endidness(data: &'s [u8], endidness: Endidness) -> Self
Sourcepub fn with_offset_and_endidness(
data: &'s [u8],
initial_offset: usize,
endidness: Endidness,
) -> Self
pub fn with_offset_and_endidness( data: &'s [u8], initial_offset: usize, endidness: Endidness, ) -> Self
Sourcepub fn next_bytes(&self, buf: &mut [u8]) -> Result<()>
pub fn next_bytes(&self, buf: &mut [u8]) -> Result<()>
Fills the provided buffer with the next n bytes, where n is the length of the buffer. This
then advances the Segment::current_offset by n.
Note: Only available if the Segment’s I is u8.
Sourcepub fn int_at<N: Integer>(&self, offset: usize) -> Result<N>
pub fn int_at<N: Integer>(&self, offset: usize) -> Result<N>
Gets an integer of the provided type (e.g. u8, i8, u16, i16, etcetera) at the given
offset without altering the Segment::current_offset. In most cases, you should use
methods like Segment::u8_at instead.
Note: Only available if the Segment’s I is u8.
Sourcepub fn u8_at(&self, offset: usize) -> Result<u8>
pub fn u8_at(&self, offset: usize) -> Result<u8>
See the documentation for Segment::int_at.
Note: Only available if the Segment’s I is u8.
Sourcepub fn u16_at(&self, offset: usize) -> Result<u16>
pub fn u16_at(&self, offset: usize) -> Result<u16>
See the documentation for Segment::int_at.
Note: Only available if the Segment’s I is u8.
Sourcepub fn u32_at(&self, offset: usize) -> Result<u32>
pub fn u32_at(&self, offset: usize) -> Result<u32>
See the documentation for Segment::int_at.
Note: Only available if the Segment’s I is u8.
Sourcepub fn u64_at(&self, offset: usize) -> Result<u64>
pub fn u64_at(&self, offset: usize) -> Result<u64>
See the documentation for Segment::int_at.
Note: Only available if the Segment’s I is u8.
Sourcepub fn u128_at(&self, offset: usize) -> Result<u128>
pub fn u128_at(&self, offset: usize) -> Result<u128>
See the documentation for Segment::int_at.
Note: Only available if the Segment’s I is u8.
Sourcepub fn i8_at(&self, offset: usize) -> Result<i8>
pub fn i8_at(&self, offset: usize) -> Result<i8>
See the documentation for Segment::int_at.
Note: Only available if the Segment’s I is u8.
Sourcepub fn i16_at(&self, offset: usize) -> Result<i16>
pub fn i16_at(&self, offset: usize) -> Result<i16>
See the documentation for Segment::int_at.
Note: Only available if the Segment’s I is u8.
Sourcepub fn i32_at(&self, offset: usize) -> Result<i32>
pub fn i32_at(&self, offset: usize) -> Result<i32>
See the documentation for Segment::int_at.
Note: Only available if the Segment’s I is u8.
Sourcepub fn i64_at(&self, offset: usize) -> Result<i64>
pub fn i64_at(&self, offset: usize) -> Result<i64>
See the documentation for Segment::int_at.
Note: Only available if the Segment’s I is u8.
Sourcepub fn i128_at(&self, offset: usize) -> Result<i128>
pub fn i128_at(&self, offset: usize) -> Result<i128>
See the documentation for Segment::int_at.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_int<N: Integer>(&self) -> Result<N>
pub fn current_int<N: Integer>(&self) -> Result<N>
Gets an integer of the provided type (e.g. u8, i8, u16, i16, etcetera) starting at
the at the Segment::current_offset without altering it. In most cases, you should use
methods like Segment::current_u8 instead.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_u8(&self) -> Result<u8>
pub fn current_u8(&self) -> Result<u8>
See the documentation for Segment::current_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_u16(&self) -> Result<u16>
pub fn current_u16(&self) -> Result<u16>
See the documentation for Segment::current_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_u32(&self) -> Result<u32>
pub fn current_u32(&self) -> Result<u32>
See the documentation for Segment::current_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_u64(&self) -> Result<u64>
pub fn current_u64(&self) -> Result<u64>
See the documentation for Segment::current_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_u128(&self) -> Result<u128>
pub fn current_u128(&self) -> Result<u128>
See the documentation for Segment::current_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_i8(&self) -> Result<i8>
pub fn current_i8(&self) -> Result<i8>
See the documentation for Segment::current_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_i16(&self) -> Result<i16>
pub fn current_i16(&self) -> Result<i16>
See the documentation for Segment::current_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_i32(&self) -> Result<i32>
pub fn current_i32(&self) -> Result<i32>
See the documentation for Segment::current_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_i64(&self) -> Result<i64>
pub fn current_i64(&self) -> Result<i64>
See the documentation for Segment::current_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn current_i128(&self) -> Result<i128>
pub fn current_i128(&self) -> Result<i128>
See the documentation for Segment::current_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_int<N: Integer>(&self) -> Result<N>
pub fn peek_int<N: Integer>(&self) -> Result<N>
Gets an integer of the provided type (e.g. u8, i8, u16, i16, etcetera) starting at
the at the Segment::current_offset but without advancing the
Segment::current_offset. In most
cases, you should use methods like Segment::peek_u8 instead.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_u8(&self) -> Result<u8>
pub fn peek_u8(&self) -> Result<u8>
See the documentation for Segment::peek_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_u16(&self) -> Result<u16>
pub fn peek_u16(&self) -> Result<u16>
See the documentation for Segment::peek_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_u32(&self) -> Result<u32>
pub fn peek_u32(&self) -> Result<u32>
See the documentation for Segment::peek_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_u64(&self) -> Result<u64>
pub fn peek_u64(&self) -> Result<u64>
See the documentation for Segment::peek_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_u128(&self) -> Result<u128>
pub fn peek_u128(&self) -> Result<u128>
See the documentation for Segment::peek_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_i8(&self) -> Result<i8>
pub fn peek_i8(&self) -> Result<i8>
See the documentation for Segment::peek_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_i16(&self) -> Result<i16>
pub fn peek_i16(&self) -> Result<i16>
See the documentation for Segment::peek_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_i32(&self) -> Result<i32>
pub fn peek_i32(&self) -> Result<i32>
See the documentation for Segment::peek_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_i64(&self) -> Result<i64>
pub fn peek_i64(&self) -> Result<i64>
See the documentation for Segment::peek_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn peek_i128(&self) -> Result<i128>
pub fn peek_i128(&self) -> Result<i128>
See the documentation for Segment::peek_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn next_int<N: Integer>(&self) -> Result<N>
pub fn next_int<N: Integer>(&self) -> Result<N>
Gets an integer of the provided type (e.g. u8, i8, u16, i16, etcetera) starting at
the at the Segment::current_offset and then advances the Segment::current_offset by
n, where n is the number of bytes required to create the requested integer type. In most
cases, you should use methods like Segment::next_u8 instead.
Note: Only available if the Segment’s I is u8.
Sourcepub fn next_u8(&self) -> Result<u8>
pub fn next_u8(&self) -> Result<u8>
See the documentation for Segment::next_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn next_u16(&self) -> Result<u16>
pub fn next_u16(&self) -> Result<u16>
See the documentation for Segment::next_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn next_u32(&self) -> Result<u32>
pub fn next_u32(&self) -> Result<u32>
See the documentation for Segment::next_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn next_u64(&self) -> Result<u64>
pub fn next_u64(&self) -> Result<u64>
See the documentation for Segment::next_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn next_u128(&self) -> Result<u128>
pub fn next_u128(&self) -> Result<u128>
See the documentation for Segment::next_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn next_i8(&self) -> Result<i8>
pub fn next_i8(&self) -> Result<i8>
See the documentation for Segment::next_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn next_i16(&self) -> Result<i16>
pub fn next_i16(&self) -> Result<i16>
See the documentation for Segment::next_int.
Note: Only available if the Segment’s I is u8.
Sourcepub fn next_i32(&self) -> Result<i32>
pub fn next_i32(&self) -> Result<i32>
See the documentation for Segment::next_int.
Note: Only available if the Segment’s I is u8.
Source§impl<'s, I> Segment<'s, I>
impl<'s, I> Segment<'s, I>
pub fn new(data: &'s [I]) -> Self
Sourcepub fn change_initial_offset(&mut self, offset: usize)
pub fn change_initial_offset(&mut self, offset: usize)
Changes the initial offset.
Sourcepub fn next_n_as_slice(&self, num_items: usize) -> Result<&[I]>
pub fn next_n_as_slice(&self, num_items: usize) -> Result<&[I]>
Returns a slice of the requested size containing the next n items (where n is
the num_items parameter) and then advances the Segment::current_offset by that much.
Sourcepub fn next_item_ref(&self) -> Result<&I>
pub fn next_item_ref(&self) -> Result<&I>
Gets a reference to the next item and then advances the Segment::current_offset by 1
pub fn next_n(&self, num_items: usize) -> Result<Segment<'_, I>>
Sourcepub fn next_item_refs(&self, buf: &mut [&'s I]) -> Result<()>
pub fn next_item_refs(&self, buf: &mut [&'s I]) -> Result<()>
Fills the provided buffer with the next n items, where n is the length of the buffer and
then advances the Segment::current_offset by n.
Sourcepub fn with_offset(data: &'s [I], initial_offset: usize) -> Self
pub fn with_offset(data: &'s [I], initial_offset: usize) -> Self
Generates a new Segment using the provided slice and initial offset.
Sourcepub fn initial_offset(&self) -> usize
pub fn initial_offset(&self) -> usize
Sourcepub fn current_offset(&self) -> usize
pub fn current_offset(&self) -> usize
The current offset of the Segment’s cursor.
Sourcepub fn move_by(&self, num_items: i128) -> Result<()>
pub fn move_by(&self, num_items: i128) -> Result<()>
Alters the Segment::current_offset by the given amount.
Sourcepub fn item_ref_at(&self, offset: usize) -> Result<&I>
pub fn item_ref_at(&self, offset: usize) -> Result<&I>
Gets the item at the provided offset without altering the Segment::current_offset.
pub fn current_item_ref(&self) -> Result<&I>
Sourcepub fn get_remaining_as_slice(&self) -> Result<&[I]>
pub fn get_remaining_as_slice(&self) -> Result<&[I]>
Gets a slice of all remaining data in the Segment and then advances the
Segment::current_offset to the end of the segment.
pub fn get_remaining(&self) -> Result<Self>
Sourcepub fn lower_offset_limit(&self) -> usize
pub fn lower_offset_limit(&self) -> usize
The lowest valid offset that can be requested.
Sourcepub fn upper_offset_limit(&self) -> usize
pub fn upper_offset_limit(&self) -> usize
The highest valid offset that can be requested.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Checks whether or not there is any data left, relative to the Segment::current_offset.
Sourcepub fn remaining(&self) -> usize
pub fn remaining(&self) -> usize
The amount of data left, relative to the Segment::current_offset.
Sourcepub fn has_more(&self) -> bool
pub fn has_more(&self) -> bool
Returns true if there is more data after the Segment::current_offset.
Sourcepub fn item_refs_at<'a>(
&'s self,
offset: usize,
buf: &mut [&'a I],
) -> Result<()>where
's: 'a,
pub fn item_refs_at<'a>(
&'s self,
offset: usize,
buf: &mut [&'a I],
) -> Result<()>where
's: 'a,
Fills the provided buffer with references to items, starting at the provided offset. This
does not alter the Segment::current_offset.
Sourcepub fn validate_offset(&self, offset: usize, size: usize) -> Result<()>
pub fn validate_offset(&self, offset: usize, size: usize) -> Result<()>
A helper method that validates an offset.
If the offset is valid, then Ok(()) will be returned. Otherwise, the appropriate
Error is returned.
Sourcepub fn relative_offset(&self, abs_offset: usize) -> Result<usize>
pub fn relative_offset(&self, abs_offset: usize) -> Result<usize>
Takes an absolute offset and converts it to a relative offset, based off of the
Segment::current_offset.
Sourcepub fn get_n(&self, offset: usize, num_items: usize) -> Result<Segment<'_, I>>
pub fn get_n(&self, offset: usize, num_items: usize) -> Result<Segment<'_, I>>
Returns a new Segment of the requested size, starting at the provied offset. This does
not alter the Segment::current_offset.
pub fn get_n_as_slice(&self, offset: usize, num_items: usize) -> Result<&[I]>
Sourcepub fn get_as_slice(&self, start: usize, end: usize) -> Result<&[I]>
pub fn get_as_slice(&self, start: usize, end: usize) -> Result<&[I]>
Returns a slice of the data between the provided starting and ending offsets.
pub fn segment(&self, start: usize, end: usize) -> Result<Segment<'_, I>>
Sourcepub fn all_after(&self, offset: usize) -> Result<Segment<'_, I>>
pub fn all_after(&self, offset: usize) -> Result<Segment<'_, I>>
Creates a new segment off all items after the provided offset (inclusive).
Sourcepub fn all_before(&self, offset: usize) -> Result<Segment<'_, I>>
pub fn all_before(&self, offset: usize) -> Result<Segment<'_, I>>
Creates a new segment off all items before the provided offset (exclusive).
Source§impl<'s, I> Segment<'s, I>
impl<'s, I> Segment<'s, I>
Sourcepub fn next_n_as_array<const N: usize>(&self) -> Result<[I; N]>
pub fn next_n_as_array<const N: usize>(&self) -> Result<[I; N]>
Gets the next n items as an array and then advances the Segment::current_offset by the
size of the array
Source§impl<'s, I> Segment<'s, I>where
I: PartialEq,
impl<'s, I> Segment<'s, I>where
I: PartialEq,
Sourcepub fn next_items_are(&self, prefix: &[I]) -> Result<bool>
pub fn next_items_are(&self, prefix: &[I]) -> Result<bool>
Returns true if the next items are the same as the ones in the provided slice.
Source§impl<'s, I: Clone> Segment<'s, I>
impl<'s, I: Clone> Segment<'s, I>
Sourcepub fn items_at(&self, offset: usize, buf: &mut [I]) -> Result<()>
pub fn items_at(&self, offset: usize, buf: &mut [I]) -> Result<()>
Fills the provided buffer with bytes, starting at the provided offset. This does not alter
the Segment::current_offset.
pub fn next_items(&self, buf: &mut [I]) -> Result<()>
Sourcepub fn item_at(&self, offset: usize) -> Result<I>
pub fn item_at(&self, offset: usize) -> Result<I>
Gets the item at the provided offset without altering the Segment::current_offset.
pub fn current_item(&self) -> Result<I>
Trait Implementations§
Source§impl<'r> AsyncBufRead for Segment<'r, u8>
impl<'r> AsyncBufRead for Segment<'r, u8>
Source§impl<'s> BufRead for Segment<'s, u8>
impl<'s> BufRead for Segment<'s, u8>
Source§fn fill_buf(&mut self) -> Result<&[u8]>
fn fill_buf(&mut self) -> Result<&[u8]>
Read methods, if empty. Read moreSource§fn consume(&mut self, amt: usize)
fn consume(&mut self, amt: usize)
amount of additional bytes from the internal buffer as having been read.
Subsequent calls to read only return bytes that have not been marked as read. Read moreSource§fn has_data_left(&mut self) -> Result<bool, Error>
fn has_data_left(&mut self) -> Result<bool, Error>
buf_read_has_data_left)read. Read more1.83.0 · Source§fn skip_until(&mut self, byte: u8) -> Result<usize, Error>
fn skip_until(&mut self, byte: u8) -> Result<usize, Error>
byte or EOF is reached. Read more1.0.0 · Source§fn read_line(&mut self, buf: &mut String) -> Result<usize, Error>
fn read_line(&mut self, buf: &mut String) -> Result<usize, Error>
0xA byte) is reached, and append
them to the provided String buffer. Read moreSource§impl<'s> Read for Segment<'s, u8>
impl<'s> Read for Segment<'s, u8>
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize>
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
1.36.0 · Source§fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
read, except that it reads into a slice of buffers. Read moreSource§fn is_read_vectored(&self) -> bool
fn is_read_vectored(&self) -> bool
can_vector)1.0.0 · Source§fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
buf. Read more1.0.0 · Source§fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
buf. Read more1.6.0 · Source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
buf. Read moreSource§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
read_buf)Source§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
read_buf)cursor. Read more1.0.0 · Source§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Read. Read moreSource§impl<'s> Seek for Segment<'s, u8>
impl<'s> Seek for Segment<'s, u8>
Source§fn seek(&mut self, pos: SeekFrom) -> Result<u64>
fn seek(&mut self, pos: SeekFrom) -> Result<u64>
1.55.0 · Source§fn rewind(&mut self) -> Result<(), Error>
fn rewind(&mut self) -> Result<(), Error>
Source§fn stream_len(&mut self) -> Result<u64, Error>
fn stream_len(&mut self) -> Result<u64, Error>
seek_stream_len)Auto Trait Implementations§
impl<'s, I> !Freeze for Segment<'s, I>
impl<'s, I> RefUnwindSafe for Segment<'s, I>where
I: RefUnwindSafe,
impl<'s, I> Send for Segment<'s, I>where
I: Sync,
impl<'s, I> Sync for Segment<'s, I>where
I: Sync,
impl<'s, I> Unpin for Segment<'s, I>
impl<'s, I> UnwindSafe for Segment<'s, I>where
I: RefUnwindSafe,
Blanket Implementations§
Source§impl<R> AsyncBufReadExt for Rwhere
R: AsyncBufRead + ?Sized,
impl<R> AsyncBufReadExt for Rwhere
R: AsyncBufRead + ?Sized,
Source§fn read_until<'a>(
&'a mut self,
byte: u8,
buf: &'a mut Vec<u8>,
) -> ReadUntil<'a, Self>where
Self: Unpin,
fn read_until<'a>(
&'a mut self,
byte: u8,
buf: &'a mut Vec<u8>,
) -> ReadUntil<'a, Self>where
Self: Unpin,
Source§fn read_line<'a>(&'a mut self, buf: &'a mut String) -> ReadLine<'a, Self>where
Self: Unpin,
fn read_line<'a>(&'a mut self, buf: &'a mut String) -> ReadLine<'a, Self>where
Self: Unpin,
Source§fn split(self, byte: u8) -> Split<Self>
fn split(self, byte: u8) -> Split<Self>
byte. Read moreSource§fn fill_buf(&mut self) -> FillBuf<'_, Self>where
Self: Unpin,
fn fill_buf(&mut self) -> FillBuf<'_, Self>where
Self: Unpin,
Source§impl<R> AsyncReadExt for R
impl<R> AsyncReadExt for R
Source§fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Read<'a, Self>where
Self: Unpin,
fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Read<'a, Self>where
Self: Unpin,
Source§fn read_buf<'a, B>(&'a mut self, buf: &'a mut B) -> ReadBuf<'a, Self, B>
fn read_buf<'a, B>(&'a mut self, buf: &'a mut B) -> ReadBuf<'a, Self, B>
Source§fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self>where
Self: Unpin,
fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self>where
Self: Unpin,
buf. Read moreSource§fn read_u8(&mut self) -> ReadU8<&mut Self>where
Self: Unpin,
fn read_u8(&mut self) -> ReadU8<&mut Self>where
Self: Unpin,
Source§fn read_i8(&mut self) -> ReadI8<&mut Self>where
Self: Unpin,
fn read_i8(&mut self) -> ReadI8<&mut Self>where
Self: Unpin,
Source§fn read_u16(&mut self) -> ReadU16<&mut Self>where
Self: Unpin,
fn read_u16(&mut self) -> ReadU16<&mut Self>where
Self: Unpin,
Source§fn read_i16(&mut self) -> ReadI16<&mut Self>where
Self: Unpin,
fn read_i16(&mut self) -> ReadI16<&mut Self>where
Self: Unpin,
Source§fn read_u32(&mut self) -> ReadU32<&mut Self>where
Self: Unpin,
fn read_u32(&mut self) -> ReadU32<&mut Self>where
Self: Unpin,
Source§fn read_i32(&mut self) -> ReadI32<&mut Self>where
Self: Unpin,
fn read_i32(&mut self) -> ReadI32<&mut Self>where
Self: Unpin,
Source§fn read_u64(&mut self) -> ReadU64<&mut Self>where
Self: Unpin,
fn read_u64(&mut self) -> ReadU64<&mut Self>where
Self: Unpin,
Source§fn read_i64(&mut self) -> ReadI64<&mut Self>where
Self: Unpin,
fn read_i64(&mut self) -> ReadI64<&mut Self>where
Self: Unpin,
Source§fn read_u128(&mut self) -> ReadU128<&mut Self>where
Self: Unpin,
fn read_u128(&mut self) -> ReadU128<&mut Self>where
Self: Unpin,
Source§fn read_i128(&mut self) -> ReadI128<&mut Self>where
Self: Unpin,
fn read_i128(&mut self) -> ReadI128<&mut Self>where
Self: Unpin,
Source§fn read_f32(&mut self) -> ReadF32<&mut Self>where
Self: Unpin,
fn read_f32(&mut self) -> ReadF32<&mut Self>where
Self: Unpin,
Source§fn read_f64(&mut self) -> ReadF64<&mut Self>where
Self: Unpin,
fn read_f64(&mut self) -> ReadF64<&mut Self>where
Self: Unpin,
Source§fn read_u16_le(&mut self) -> ReadU16Le<&mut Self>where
Self: Unpin,
fn read_u16_le(&mut self) -> ReadU16Le<&mut Self>where
Self: Unpin,
Source§fn read_i16_le(&mut self) -> ReadI16Le<&mut Self>where
Self: Unpin,
fn read_i16_le(&mut self) -> ReadI16Le<&mut Self>where
Self: Unpin,
Source§fn read_u32_le(&mut self) -> ReadU32Le<&mut Self>where
Self: Unpin,
fn read_u32_le(&mut self) -> ReadU32Le<&mut Self>where
Self: Unpin,
Source§fn read_i32_le(&mut self) -> ReadI32Le<&mut Self>where
Self: Unpin,
fn read_i32_le(&mut self) -> ReadI32Le<&mut Self>where
Self: Unpin,
Source§fn read_u64_le(&mut self) -> ReadU64Le<&mut Self>where
Self: Unpin,
fn read_u64_le(&mut self) -> ReadU64Le<&mut Self>where
Self: Unpin,
Source§fn read_i64_le(&mut self) -> ReadI64Le<&mut Self>where
Self: Unpin,
fn read_i64_le(&mut self) -> ReadI64Le<&mut Self>where
Self: Unpin,
Source§fn read_u128_le(&mut self) -> ReadU128Le<&mut Self>where
Self: Unpin,
fn read_u128_le(&mut self) -> ReadU128Le<&mut Self>where
Self: Unpin,
Source§fn read_i128_le(&mut self) -> ReadI128Le<&mut Self>where
Self: Unpin,
fn read_i128_le(&mut self) -> ReadI128Le<&mut Self>where
Self: Unpin,
Source§fn read_f32_le(&mut self) -> ReadF32Le<&mut Self>where
Self: Unpin,
fn read_f32_le(&mut self) -> ReadF32Le<&mut Self>where
Self: Unpin,
Source§fn read_f64_le(&mut self) -> ReadF64Le<&mut Self>where
Self: Unpin,
fn read_f64_le(&mut self) -> ReadF64Le<&mut Self>where
Self: Unpin,
Source§fn read_to_end<'a>(&'a mut self, buf: &'a mut Vec<u8>) -> ReadToEnd<'a, Self>where
Self: Unpin,
fn read_to_end<'a>(&'a mut self, buf: &'a mut Vec<u8>) -> ReadToEnd<'a, Self>where
Self: Unpin,
buf. Read more