pub struct LineColByteRange(pub usize, pub usize, pub Range<usize>);Expand description
LineColByteRange(line, col, byte_start..byte_end)
Tuple Fields§
§0: usize1-indexed line.
1: usize1-indexed column.
2: Range<usize>The start (inclusive) and end (exclusive) byte positions.
Implementations§
Trait Implementations§
Source§impl Clone for LineColByteRange
impl Clone for LineColByteRange
Source§fn clone(&self) -> LineColByteRange
fn clone(&self) -> LineColByteRange
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 LineColByteRange
impl Debug for LineColByteRange
Source§impl<A> From<LineColByteRange> for (A,)where
LineColByteRange: Into<A>,
impl<A> From<LineColByteRange> for (A,)where
LineColByteRange: Into<A>,
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl<A, B> From<LineColByteRange> for (A, B)
impl<A, B> From<LineColByteRange> for (A, B)
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl<A, B, C> From<LineColByteRange> for (A, B, C)
impl<A, B, C> From<LineColByteRange> for (A, B, C)
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl<A, B, C, D> From<LineColByteRange> for (A, B, C, D)
impl<A, B, C, D> From<LineColByteRange> for (A, B, C, D)
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl<A, B, C, D, E> From<LineColByteRange> for (A, B, C, D, E)
impl<A, B, C, D, E> From<LineColByteRange> for (A, B, C, D, E)
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F> From<LineColByteRange> for (A, B, C, D, E, F)
impl<A, B, C, D, E, F> From<LineColByteRange> for (A, B, C, D, E, F)
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl From<LineColByteRange> for ByteEnd
impl From<LineColByteRange> for ByteEnd
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl From<LineColByteRange> for ByteRange
impl From<LineColByteRange> for ByteRange
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl From<LineColByteRange> for ByteStart
impl From<LineColByteRange> for ByteStart
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl From<LineColByteRange> for Col
impl From<LineColByteRange> for Col
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl From<LineColByteRange> for Line
impl From<LineColByteRange> for Line
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl From<LineColByteRange> for LineCol
impl From<LineColByteRange> for LineCol
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> 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 From<LineColByteRange> for Range<usize>
impl From<LineColByteRange> for Range<usize>
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl From<LineColByteRange> for usize
impl From<LineColByteRange> for usize
Source§fn from(pos: LineColByteRange) -> Self
fn from(pos: LineColByteRange) -> Self
Converts to this type from the input type.
Source§impl Hash for LineColByteRange
impl Hash for LineColByteRange
Source§impl PartialEq for LineColByteRange
impl PartialEq for LineColByteRange
impl Eq for LineColByteRange
impl StructuralPartialEq for LineColByteRange
Auto Trait Implementations§
impl Freeze for LineColByteRange
impl RefUnwindSafe for LineColByteRange
impl Send for LineColByteRange
impl Sync for LineColByteRange
impl Unpin for LineColByteRange
impl UnwindSafe for LineColByteRange
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