struct Reader<'a> {
bytes: &'a [u8],
at: usize,
section_start: usize,
}Expand description
A cursor over the length-prefixed sections a CAR file is made of.
Fields§
§bytes: &'a [u8]The whole file.
at: usizeHow far in the cursor is.
section_start: usizeWhere the section most recently returned began, for error messages.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Reader<'a>
impl<'a> RefUnwindSafe for Reader<'a>
impl<'a> Send for Reader<'a>
impl<'a> Sync for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> UnsafeUnpin for Reader<'a>
impl<'a> UnwindSafe for Reader<'a>
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