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