Struct broot::syntactic::SyntacticView [−][src]
pub struct SyntacticView { pub path: PathBuf, pub pattern: InputPattern, // some fields omitted }
Fields
path: PathBuf
pattern: InputPattern
Implementations
pub fn new(
path: &Path,
pattern: InputPattern,
dam: &mut Dam,
con: &AppContext
) -> Result<Option<Self>, ProgramError>
pub fn new(
path: &Path,
pattern: InputPattern,
dam: &mut Dam,
con: &AppContext
) -> Result<Option<Self>, ProgramError>
return a prepared text view with syntax coloring if possible. May return Ok(None) only when a pattern is given and there was an event before the end of filtering.
(count of lines which can be seen when scrolling, total count including filtered ones)