pub struct LineIndex(pub u32);Expand description
A zero-indexed line offset into a source file
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl Add<LineOffset> for LineIndex
impl Add<LineOffset> for LineIndex
Source§impl AddAssign<LineOffset> for LineIndex
impl AddAssign<LineOffset> for LineIndex
Source§fn add_assign(&mut self, rhs: LineOffset)
fn add_assign(&mut self, rhs: LineOffset)
Performs the
+= operation. Read moreimpl Copy for LineIndex
impl Eq for LineIndex
Source§impl Ord for LineIndex
impl Ord for LineIndex
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 PartialOrd for LineIndex
impl PartialOrd for LineIndex
impl StructuralPartialEq for LineIndex
Source§impl Sub for LineIndex
impl Sub for LineIndex
Source§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
- operator.Source§impl Sub<LineOffset> for LineIndex
impl Sub<LineOffset> for LineIndex
Source§impl SubAssign<LineOffset> for LineIndex
impl SubAssign<LineOffset> for LineIndex
Source§fn sub_assign(&mut self, rhs: LineOffset)
fn sub_assign(&mut self, rhs: LineOffset)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for LineIndex
impl RefUnwindSafe for LineIndex
impl Send for LineIndex
impl Sync for LineIndex
impl Unpin for LineIndex
impl UnsafeUnpin for LineIndex
impl UnwindSafe for LineIndex
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