pub struct LineCoord<'a> {
pub buf: SourceId,
pub line: u32,
pub line_ref: &'a [u8],
}Expand description
Result of looking up a line: buffer, 1-based line number, and a reference to
the line itself (including EOL if present). Port of LineCoord.
Fields§
§buf: SourceId§line: u32§line_ref: &'a [u8]Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LineCoord<'a>
impl<'a> RefUnwindSafe for LineCoord<'a>
impl<'a> Send for LineCoord<'a>
impl<'a> Sync for LineCoord<'a>
impl<'a> Unpin for LineCoord<'a>
impl<'a> UnsafeUnpin for LineCoord<'a>
impl<'a> UnwindSafe for LineCoord<'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