Trait Ext
takes
pub trait Ext: Read + Seek + Sized { pub fn takes(self, limit: u64) -> Result<Takes<Self>>; }
Extension trait for Read + Seek to support takes
Read + Seek
pub fn takes(self, limit: u64) -> Result<Takes<Self>>
Returns a seekable Take.
Returns an error if the current offset could not be seeked.
impl<R: Read + Seek> Ext for R