pub struct Line(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 moreSource§impl Ord for LineIndex
impl Ord for LineIndex
Source§impl PartialOrd for LineIndex
impl PartialOrd for LineIndex
Source§impl Sub<LineOffset> for LineIndex
impl Sub<LineOffset> 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 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 moreimpl Copy for LineIndex
impl Eq for LineIndex
impl StructuralPartialEq for LineIndex
Auto Trait Implementations§
impl Freeze for LineIndex
impl RefUnwindSafe for LineIndex
impl Send for LineIndex
impl Sync for LineIndex
impl Unpin 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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more