pub struct LineColUtf8 {
pub line: u32,
pub col: u32,
}Expand description
A line and column index pair, both 0-based, for the UTF-8 encoding of the source text.
Fields§
§line: u32§col: u32Trait Implementations§
source§impl Clone for LineColUtf8
impl Clone for LineColUtf8
source§fn clone(&self) -> LineColUtf8
fn clone(&self) -> LineColUtf8
Returns a copy 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 LineColUtf8
impl Debug for LineColUtf8
source§impl Ord for LineColUtf8
impl Ord for LineColUtf8
source§fn cmp(&self, other: &LineColUtf8) -> Ordering
fn cmp(&self, other: &LineColUtf8) -> 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 LineColUtf8
impl PartialEq for LineColUtf8
source§impl PartialOrd for LineColUtf8
impl PartialOrd for LineColUtf8
impl Copy for LineColUtf8
impl Eq for LineColUtf8
impl StructuralPartialEq for LineColUtf8
Auto Trait Implementations§
impl Freeze for LineColUtf8
impl RefUnwindSafe for LineColUtf8
impl Send for LineColUtf8
impl Sync for LineColUtf8
impl Unpin for LineColUtf8
impl UnwindSafe for LineColUtf8
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)