pub struct OneChunk<T>(/* private fields */);Expand description
Convenience wrapper to use byte slices where a Read is expected.
Trait Implementations§
Source§impl<T: SplitByteSlice> From<T> for OneChunk<T>
impl<T: SplitByteSlice> From<T> for OneChunk<T>
Source§impl<T: SplitByteSlice> Read for OneChunk<T>
impl<T: SplitByteSlice> Read for OneChunk<T>
Source§fn next_chunk(&mut self) -> ParseResult<Self::Chunk>
fn next_chunk(&mut self) -> ParseResult<Self::Chunk>
Attempts to fetch the next available byte slice from
self.Source§fn chunks_len(&self) -> usize
fn chunks_len(&self) -> usize
Returns the number of segments remaining.
Auto Trait Implementations§
impl<T> Freeze for OneChunk<T>where
T: Freeze,
impl<T> RefUnwindSafe for OneChunk<T>where
T: RefUnwindSafe,
impl<T> Send for OneChunk<T>where
T: Send,
impl<T> Sync for OneChunk<T>where
T: Sync,
impl<T> Unpin for OneChunk<T>where
T: Unpin,
impl<T> UnwindSafe for OneChunk<T>where
T: UnwindSafe,
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