pub(crate) struct Reader<'a> {
pub(crate) data: &'a [u8],
pub(crate) pos: usize,
pub(crate) limit: usize,
pub(crate) base_offset: usize,
}Expand description
Cursor over a byte slice bounded to limit bytes.
base_offset shifts all reported row offsets so they reflect the field’s
absolute position within the containing file (0 for standalone descriptors).
Fields§
§data: &'a [u8]§pos: usize§limit: usize§base_offset: usizeImplementations§
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