#[repr(transparent)]pub struct LineIndex(pub usize);Tuple Fields§
§0: usizeImplementations§
Trait Implementations§
Source§impl AddAssign<usize> for LineIndex
impl AddAssign<usize> for LineIndex
Source§fn add_assign(&mut self, n: usize)
fn add_assign(&mut self, n: usize)
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq<usize> for LineIndex
Raw-unit comparison: offset > 0 reads naturally; the type
system still stops offset-vs-line mixes (the bug class).
impl PartialEq<usize> for LineIndex
Raw-unit comparison: offset > 0 reads naturally; the type
system still stops offset-vs-line mixes (the bug class).
Source§impl PartialOrd for LineIndex
impl PartialOrd for LineIndex
Source§impl PartialOrd<usize> for LineIndex
impl PartialOrd<usize> 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 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