pub struct Take<T> { /* private fields */ }
Expand description
Limit the maximum offset of a WriteAt and/or ReadAt.
This can be useful when trying to simulate a fixed size item (like a block device) with a normal file.
Implementations§
Trait Implementations§
impl<T: Eq> Eq for Take<T>
impl<T> StructuralPartialEq for Take<T>
Auto Trait Implementations§
impl<T> Freeze for Take<T>where
T: Freeze,
impl<T> RefUnwindSafe for Take<T>where
T: RefUnwindSafe,
impl<T> Send for Take<T>where
T: Send,
impl<T> Sync for Take<T>where
T: Sync,
impl<T> Unpin for Take<T>where
T: Unpin,
impl<T> UnwindSafe for Take<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