pub struct OwnedLine {
pub number: usize,
pub highlighted: bool,
pub tokens: Vec<OwnedToken>,
}Expand description
An owned source line without its newline separator.
Fields§
§number: usizeOne-based source line number.
highlighted: boolWhether the caller selected this line for emphasis.
tokens: Vec<OwnedToken>Tokens in source order, without newline separators.
Trait Implementations§
impl Eq for OwnedLine
impl StructuralPartialEq for OwnedLine
Auto Trait Implementations§
impl Forget for OwnedLine
impl Freeze for OwnedLine
impl Move for OwnedLine
impl RefUnwindSafe for OwnedLine
impl Send for OwnedLine
impl Sync for OwnedLine
impl Unpin for OwnedLine
impl UnsafeUnpin for OwnedLine
impl UnwindSafe for OwnedLine
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