pub struct OneBased {
pub line: NonZeroUsize,
pub column: NonZeroUsize,
}Expand description
One-based (line, column) location
Fields§
§line: NonZeroUsize§column: NonZeroUsizeImplementations§
Trait Implementations§
impl Eq for OneBased
Source§impl From<(NonZero<usize>, NonZero<usize>)> for OneBased
impl From<(NonZero<usize>, NonZero<usize>)> for OneBased
Source§fn from((line, column): (NonZeroUsize, NonZeroUsize)) -> Self
fn from((line, column): (NonZeroUsize, NonZeroUsize)) -> Self
Converts to this type from the input type.
Source§impl Ord for OneBased
impl Ord for OneBased
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
Source§impl PartialOrd for OneBased
impl PartialOrd for OneBased
impl StructuralPartialEq for OneBased
Auto Trait Implementations§
impl Freeze for OneBased
impl RefUnwindSafe for OneBased
impl Send for OneBased
impl Sync for OneBased
impl Unpin for OneBased
impl UnsafeUnpin for OneBased
impl UnwindSafe for OneBased
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