pub struct ExplainedLine {
pub class: LineClass,
pub read_as: Option<String>,
pub carried: Carried,
pub spans: Vec<Span>,
}Expand description
What one line of the file came to.
Fields§
§class: LineClassWhich of the nine it was sorted into.
read_as: Option<String>Some where a nested language’s rules read the line, None where the file’s own did.
carried: CarriedWhat earlier lines had left open when this one began.
spans: Vec<Span>The line cut into its stretches of code, string and comment, in order and touching each other. Whitespace at either end of the line sits outside them, and a blank line has none.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExplainedLine
impl RefUnwindSafe for ExplainedLine
impl Send for ExplainedLine
impl Sync for ExplainedLine
impl Unpin for ExplainedLine
impl UnsafeUnpin for ExplainedLine
impl UnwindSafe for ExplainedLine
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