pub struct LineNumber(/* private fields */);Expand description
A 1-indexed line number. Useful for pretty printing source locations.
Implementations§
Trait Implementations§
Source§impl Clone for LineNumber
impl Clone for LineNumber
Source§fn clone(&self) -> LineNumber
fn clone(&self) -> LineNumber
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineNumber
impl Debug for LineNumber
Source§impl Display for LineNumber
impl Display for LineNumber
Source§impl Hash for LineNumber
impl Hash for LineNumber
Source§impl Ord for LineNumber
impl Ord for LineNumber
Source§fn cmp(&self, other: &LineNumber) -> Ordering
fn cmp(&self, other: &LineNumber) -> Ordering
1.21.0 · 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 for LineNumber
impl PartialEq for LineNumber
Source§impl PartialOrd for LineNumber
impl PartialOrd for LineNumber
impl Copy for LineNumber
impl Eq for LineNumber
impl StructuralPartialEq for LineNumber
Auto Trait Implementations§
impl Freeze for LineNumber
impl RefUnwindSafe for LineNumber
impl Send for LineNumber
impl Sync for LineNumber
impl Unpin for LineNumber
impl UnwindSafe for LineNumber
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