pub struct CsvFormatter { /* private fields */ }Expand description
CSV output formatter
Implementations§
Source§impl CsvFormatter
impl CsvFormatter
pub fn new() -> Self
pub fn with_delimiter(delimiter: char) -> Self
Trait Implementations§
Source§impl Default for CsvFormatter
impl Default for CsvFormatter
Source§impl OutputFormatter for CsvFormatter
impl OutputFormatter for CsvFormatter
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 CsvFormatter
impl RefUnwindSafe for CsvFormatter
impl Send for CsvFormatter
impl Sync for CsvFormatter
impl Unpin for CsvFormatter
impl UnsafeUnpin for CsvFormatter
impl UnwindSafe for CsvFormatter
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