Trait rtools_traits::RtoolT[][src]

pub trait RtoolT<C, P: LineProcessorT<C>> {
    fn process_lines<R: Read, W: Write>(
        &self,
        line_processor: &P,
        input: BufReader<R>,
        output: &mut BufWriter<W>,
        context: &C
    ) { ... }
fn process_readable<R: Read, W: Write>(
        &self,
        line_processor: &P,
        input: BufReader<R>,
        output: &mut BufWriter<W>,
        context: &C
    ) { ... }
fn process_files<W: Write>(
        &self,
        line_processor: &P,
        files: &Vec<&str>,
        writable: W,
        context: &C
    ) { ... }
fn process<W: Write>(
        &self,
        line_processor: &P,
        files: &Vec<&str>,
        writable: &mut W,
        context: &C
    ) { ... }
fn process_to_stdout(
        &self,
        line_processor: &P,
        files: &Vec<&str>,
        context: &C
    ) { ... } }

Provided methods

Generic line processor that delegates to concrete line processors

Process readable object: Send input to the line processor

Process files: Send them to the line processor

Read lines from the input files or STDIN and send them to the processor. Results go to defined output

Read lines from the input files or STDIN and write results to STDOUT

Implementors