pub struct Reader<R, const UTF8: bool> { /* private fields */ }Expand description
A minimal buffered wrapper for types implementing Read.
Implementations§
Trait Implementations§
Source§impl<const UTF8: bool, R: Read> Source for Reader<R, UTF8>
impl<const UTF8: bool, R: Read> Source for Reader<R, UTF8>
Source§const NULL_PADDED: bool = false
const NULL_PADDED: bool = false
Whether the source is 64 null bytes padded at the end. Allows the parser to skip bounds checking. Read more
Source§type Volatility = Volatile
type Volatility = Volatile
The volatility of the source.
Source§fn ptr(&mut self, offset: usize) -> *const u8
fn ptr(&mut self, offset: usize) -> *const u8
Returns a pointer at the given offset. Read more
Source§fn ptr_mut(&mut self, _: usize) -> *mut u8
fn ptr_mut(&mut self, _: usize) -> *mut u8
Returns a mutable pointer to the byte at the given offset. Read more
Auto Trait Implementations§
impl<R, const UTF8: bool> Freeze for Reader<R, UTF8>where
R: Freeze,
impl<R, const UTF8: bool> RefUnwindSafe for Reader<R, UTF8>where
R: RefUnwindSafe,
impl<R, const UTF8: bool> Send for Reader<R, UTF8>where
R: Send,
impl<R, const UTF8: bool> Sync for Reader<R, UTF8>where
R: Sync,
impl<R, const UTF8: bool> Unpin for Reader<R, UTF8>where
R: Unpin,
impl<R, const UTF8: bool> UnwindSafe for Reader<R, UTF8>where
R: 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