pub struct BytePositionTracker<'a> {
pub content: &'a str,
pub lines: Vec<&'a str>,
}Expand description
Utility for tracking byte positions through document lines Reduces duplication of line-by-line byte position tracking logic
Fields§
§content: &'a str§lines: Vec<&'a str>Implementations§
Source§impl<'a> BytePositionTracker<'a>
impl<'a> BytePositionTracker<'a>
Auto Trait Implementations§
impl<'a> Freeze for BytePositionTracker<'a>
impl<'a> RefUnwindSafe for BytePositionTracker<'a>
impl<'a> Send for BytePositionTracker<'a>
impl<'a> Sync for BytePositionTracker<'a>
impl<'a> Unpin for BytePositionTracker<'a>
impl<'a> UnsafeUnpin for BytePositionTracker<'a>
impl<'a> UnwindSafe for BytePositionTracker<'a>
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