pub struct OffsetSpan {
pub offset: u64,
pub len: u64,
}Expand description
Byte range associated with a parser failure.
Fields§
§offset: u64File- or slice-relative byte offset, described by the surrounding context.
len: u64Length in bytes.
Trait Implementations§
Source§impl Clone for OffsetSpan
impl Clone for OffsetSpan
impl Copy for OffsetSpan
Source§impl Debug for OffsetSpan
impl Debug for OffsetSpan
impl Eq for OffsetSpan
Source§impl PartialEq for OffsetSpan
impl PartialEq for OffsetSpan
impl StructuralPartialEq for OffsetSpan
Auto Trait Implementations§
impl Freeze for OffsetSpan
impl RefUnwindSafe for OffsetSpan
impl Send for OffsetSpan
impl Sync for OffsetSpan
impl Unpin for OffsetSpan
impl UnsafeUnpin for OffsetSpan
impl UnwindSafe for OffsetSpan
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