pub struct Line<'a> {
pub number: usize,
pub highlighted: bool,
pub tokens: Vec<Token<'a>>,
}Expand description
A source line and its tokens, without its newline separator.
Fields§
§number: usizeOne-based source line number.
highlighted: boolWhether the caller selected this line for emphasis.
tokens: Vec<Token<'a>>Tokens in source order. Token boundaries may differ from syntax node boundaries.
Trait Implementations§
impl<'a> Eq for Line<'a>
impl<'a> StructuralPartialEq for Line<'a>
Auto Trait Implementations§
impl<'a> Forget for Line<'a>
impl<'a> Freeze for Line<'a>
impl<'a> Move for Line<'a>
impl<'a> RefUnwindSafe for Line<'a>
impl<'a> Send for Line<'a>
impl<'a> Sync for Line<'a>
impl<'a> Unpin for Line<'a>
impl<'a> UnsafeUnpin for Line<'a>
impl<'a> UnwindSafe for Line<'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