pub struct BufRead(pub Arc<dyn AsBufRead>);
Expand description
A concrete read-only buffer type that may or may not be mem_locked.
Tuple Fields§
§0: Arc<dyn AsBufRead>
Implementations§
Trait Implementations§
source§impl<const S: usize> From<BufReadSized<S>> for BufRead
impl<const S: usize> From<BufReadSized<S>> for BufRead
source§fn from(b: BufReadSized<S>) -> Self
fn from(b: BufReadSized<S>) -> Self
Converts to this type from the input type.
source§impl<const S: usize> From<BufWriteSized<S>> for BufRead
impl<const S: usize> From<BufWriteSized<S>> for BufRead
source§fn from(b: BufWriteSized<S>) -> Self
fn from(b: BufWriteSized<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BufRead
impl Send for BufRead
impl Sync for BufRead
impl Unpin for BufRead
impl !UnwindSafe for BufRead
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