Struct gluon_base::pos::Line
source · pub struct Line(pub u32);
Expand description
A zero-indexed line offset into a source file
Tuple Fields§
§0: u32
Implementations§
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 PartialEq<LineIndex> for LineIndex
impl PartialEq<LineIndex> for LineIndex
source§impl PartialOrd<LineIndex> for LineIndex
impl PartialOrd<LineIndex> for LineIndex
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sub<LineIndex> for LineIndex
impl Sub<LineIndex> for LineIndex
§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 moreimpl Copy for LineIndex
impl Eq for LineIndex
impl StructuralEq for LineIndex
impl StructuralPartialEq for LineIndex
Auto Trait Implementations§
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