Enum pot::reader::BufferedBytes
source · pub enum BufferedBytes<'de> {
Data(&'de [u8]),
Scratch,
}
Expand description
Bytes that have been read into a buffer.
Variants§
Data(&'de [u8])
The bytes that have been read can be borrowed from the source.
Scratch
The bytes that have been read have been stored in the scratch buffer passed to the function reading bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'de> Freeze for BufferedBytes<'de>
impl<'de> RefUnwindSafe for BufferedBytes<'de>
impl<'de> Send for BufferedBytes<'de>
impl<'de> Sync for BufferedBytes<'de>
impl<'de> Unpin for BufferedBytes<'de>
impl<'de> UnwindSafe for BufferedBytes<'de>
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