pub struct TextPoint {
pub line: u32,
pub column: u32,
pub byte: usize,
}Expand description
Complete describption of position in a text document.
Fields§
§line: u32§column: u32§byte: usizeImplementations§
Trait Implementations§
impl Copy for TextPoint
impl Eq for TextPoint
Source§impl Ord for TextPoint
impl Ord for TextPoint
1.21.0 (const: unstable) · 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 PartialOrd for TextPoint
impl PartialOrd for TextPoint
Source§impl RangeBounds<TextPoint> for TextRange
transforming range a..b of two text points interpretable as
text range into the two endpoints a, b
impl RangeBounds<TextPoint> for TextRange
transforming range a..b of two text points interpretable as text range into the two endpoints a, b
impl StructuralPartialEq for TextPoint
Auto Trait Implementations§
impl Freeze for TextPoint
impl RefUnwindSafe for TextPoint
impl Send for TextPoint
impl Sync for TextPoint
impl Unpin for TextPoint
impl UnsafeUnpin for TextPoint
impl UnwindSafe for TextPoint
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