pub struct Caret {
pub message: MessageId,
pub source: LineSource,
pub offset: usize,
}Expand description
A document position.
Fields§
§message: MessageId§source: LineSourceWhich of the message’s texts the offset indexes.
offset: usizeByte offset into that text. Always on a char boundary.
Trait Implementations§
impl Copy for Caret
impl Eq for Caret
impl StructuralPartialEq for Caret
Auto Trait Implementations§
impl Freeze for Caret
impl RefUnwindSafe for Caret
impl Send for Caret
impl Sync for Caret
impl Unpin for Caret
impl UnsafeUnpin for Caret
impl UnwindSafe for Caret
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