pub struct HumanFormatter { /* private fields */ }Expand description
Human-readable output formatter
Implementations§
Source§impl HumanFormatter
impl HumanFormatter
pub fn new(options: OutputOptions) -> Self
Trait Implementations§
Source§impl OutputFormatter for HumanFormatter
impl OutputFormatter for HumanFormatter
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 HumanFormatter
impl RefUnwindSafe for HumanFormatter
impl Send for HumanFormatter
impl Sync for HumanFormatter
impl Unpin for HumanFormatter
impl UnsafeUnpin for HumanFormatter
impl UnwindSafe for HumanFormatter
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