pub struct Document {
pub node: Node,
pub label: Option<String>,
pub highlights: Vec<(Path, Style)>,
}Expand description
A data tree on its way to being rendered, with what transforms decided about how to show it.
Fields§
§node: Node§label: Option<String>The root’s label: the file name, or the path Select narrowed to.
highlights: Vec<(Path, Style)>Styles for the lines of these paths, from Highlight.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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