pub struct Extent(pub usize, pub usize);Expand description
A pair of (start, end) points corresponding to something
interesting in the source text.
Tuple Fields§
§0: usize§1: usizeTrait Implementations§
impl Copy for Extent
impl Eq for Extent
Source§impl Ord for Extent
impl Ord for Extent
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<(usize, usize)> for Extent
impl PartialEq<(usize, usize)> for Extent
Source§impl PartialOrd for Extent
impl PartialOrd for Extent
impl StructuralPartialEq for Extent
Auto Trait Implementations§
impl Freeze for Extent
impl RefUnwindSafe for Extent
impl Send for Extent
impl Sync for Extent
impl Unpin for Extent
impl UnsafeUnpin for Extent
impl UnwindSafe for Extent
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