pub struct Take<R> { /* private fields */ }Expand description
Zero-copy reader that limits the number of bytes read.
This is equivalent to std::io::Take, but it implements ZeroCopyReader.
Implementations§
Trait Implementations§
Source§impl<'a, R> ZeroCopyReader<'a> for Take<R>where
R: ZeroCopyReader<'a>,
impl<'a, R> ZeroCopyReader<'a> for Take<R>where
R: ZeroCopyReader<'a>,
Auto Trait Implementations§
impl<R> Freeze for Take<R>where
R: Freeze,
impl<R> RefUnwindSafe for Take<R>where
R: RefUnwindSafe,
impl<R> Send for Take<R>where
R: Send,
impl<R> Sync for Take<R>where
R: Sync,
impl<R> Unpin for Take<R>where
R: Unpin,
impl<R> UnwindSafe for Take<R>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