pub struct LineColByte(pub usize, pub usize, pub usize);Expand description
LineColByte(line, col, byte_start)
Tuple Fields§
§0: usize1-indexed line.
1: usize1-indexed column.
2: usizeThe start (inclusive) byte positions.
Implementations§
Trait Implementations§
Source§impl Clone for LineColByte
impl Clone for LineColByte
Source§fn clone(&self) -> LineColByte
fn clone(&self) -> LineColByte
Returns a duplicate 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 LineColByte
impl Debug for LineColByte
Source§impl From<LineColByte> for Col
impl From<LineColByte> for Col
Source§fn from(pos: LineColByte) -> Self
fn from(pos: LineColByte) -> Self
Converts to this type from the input type.
Source§impl From<LineColByte> for Line
impl From<LineColByte> for Line
Source§fn from(pos: LineColByte) -> Self
fn from(pos: LineColByte) -> Self
Converts to this type from the input type.
Source§impl From<LineColByte> for LineCol
impl From<LineColByte> for LineCol
Source§fn from(pos: LineColByte) -> Self
fn from(pos: LineColByte) -> Self
Converts to this type from the input type.
Source§impl From<LineColByteRange> for LineColByte
impl From<LineColByteRange> for LineColByte
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl Hash for LineColByte
impl Hash for LineColByte
Source§impl PartialEq for LineColByte
impl PartialEq for LineColByte
impl Copy for LineColByte
impl Eq for LineColByte
impl StructuralPartialEq for LineColByte
Auto Trait Implementations§
impl Freeze for LineColByte
impl RefUnwindSafe for LineColByte
impl Send for LineColByte
impl Sync for LineColByte
impl Unpin for LineColByte
impl UnwindSafe for LineColByte
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