pub struct Highlighter { /* private fields */ }Implementations§
Source§impl Highlighter
impl Highlighter
pub fn new(config: Config) -> Self
pub fn print_line( &mut self, line: &str, filename: Option<&str>, match_result: &MatchResult, dry_run: bool, ) -> Result<()>
pub fn print_error(&mut self, message: &str) -> Result<()>
pub fn print_warning(&mut self, message: &str) -> Result<()>
pub fn print_info(&mut self, message: &str) -> Result<()>
pub fn print_dry_run_summary( &mut self, matches: &[(String, usize)], ) -> Result<()>
pub fn print_startup_info(&mut self) -> Result<()>
pub fn print_file_rotation(&mut self, filename: &str) -> Result<()>
pub fn print_file_reopened(&mut self, filename: &str) -> Result<()>
pub fn print_file_error(&mut self, filename: &str, error: &str) -> Result<()>
pub fn print_shutdown_summary(&mut self, stats: &WatcherStats) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Highlighter
impl RefUnwindSafe for Highlighter
impl Send for Highlighter
impl Sync for Highlighter
impl Unpin for Highlighter
impl UnwindSafe for Highlighter
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