pub struct TemplateFormatter { /* private fields */ }Expand description
Template-based output formatter
Implementations§
Trait Implementations§
Source§impl OutputFormatter for TemplateFormatter
impl OutputFormatter for TemplateFormatter
Source§fn format_result(&self, result: &GrepResult) -> Result<String>
fn format_result(&self, result: &GrepResult) -> Result<String>
Format a single grep result
Source§fn format_results(&self, results: &[GrepResult]) -> Result<String>
fn format_results(&self, results: &[GrepResult]) -> Result<String>
Format multiple grep results
Source§fn print_result(&self, result: &GrepResult) -> Result<()>
fn print_result(&self, result: &GrepResult) -> Result<()>
Print a result directly to stdout
Source§fn print_results(&self, results: &[GrepResult]) -> Result<()>
fn print_results(&self, results: &[GrepResult]) -> Result<()>
Print multiple results directly to stdout
Auto Trait Implementations§
impl Freeze for TemplateFormatter
impl RefUnwindSafe for TemplateFormatter
impl Send for TemplateFormatter
impl Sync for TemplateFormatter
impl Unpin for TemplateFormatter
impl UnsafeUnpin for TemplateFormatter
impl UnwindSafe for TemplateFormatter
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