pub struct LineNumber(/* private fields */);Expand description
A 1-based line number.
Implementations§
Source§impl LineNumber
impl LineNumber
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 (const: unstable) · 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 PartialEq for LineNumber
impl PartialEq for LineNumber
Source§fn eq(&self, other: &LineNumber) -> bool
fn eq(&self, other: &LineNumber) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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