pub struct SpanIndex<'a> { /* private fields */ }Expand description
Precomputed line-start byte offsets. The line is found in O(log n) (binary
search over the line starts); the 1-based char column is then O(line length)
(chars().count() over the line prefix, so multi-byte chars count as one).
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SpanIndex<'a>
impl<'a> RefUnwindSafe for SpanIndex<'a>
impl<'a> Send for SpanIndex<'a>
impl<'a> Sync for SpanIndex<'a>
impl<'a> Unpin for SpanIndex<'a>
impl<'a> UnsafeUnpin for SpanIndex<'a>
impl<'a> UnwindSafe for SpanIndex<'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