Struct broot::syntactic::SyntacticView
source · pub struct SyntacticView {
pub path: PathBuf,
pub pattern: InputPattern,
/* private fields */
}
Fields§
§path: PathBuf
§pattern: InputPattern
Implementations§
source§impl SyntacticView
impl SyntacticView
sourcepub fn new(
path: &Path,
pattern: InputPattern,
dam: &mut Dam,
con: &AppContext,
no_style: bool
) -> Result<Option<Self>, ProgramError>
pub fn new(
path: &Path,
pattern: InputPattern,
dam: &mut Dam,
con: &AppContext,
no_style: bool
) -> 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.
sourcepub fn line_counts(&self) -> (usize, usize)
pub fn line_counts(&self) -> (usize, usize)
Give the count of lines which can be seen when scrolling, total count including filtered ones