pub struct CharLineCol {
pub line: LineNumber,
pub column: CharColumn,
}Expand description
1-based line and character-column position returned by
super::LineIndex::char_line_col.
Fields§
§line: LineNumber1-based line number.
column: CharColumn1-based Unicode scalar column on that line.
Trait Implementations§
Source§impl Clone for CharLineCol
impl Clone for CharLineCol
Source§fn clone(&self) -> CharLineCol
fn clone(&self) -> CharLineCol
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 moreimpl Copy for CharLineCol
Source§impl Debug for CharLineCol
impl Debug for CharLineCol
impl Eq for CharLineCol
Source§impl PartialEq for CharLineCol
impl PartialEq for CharLineCol
Source§fn eq(&self, other: &CharLineCol) -> bool
fn eq(&self, other: &CharLineCol) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CharLineCol
Auto Trait Implementations§
impl Freeze for CharLineCol
impl RefUnwindSafe for CharLineCol
impl Send for CharLineCol
impl Sync for CharLineCol
impl Unpin for CharLineCol
impl UnsafeUnpin for CharLineCol
impl UnwindSafe for CharLineCol
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