pub trait RtoolT<C, P: LineProcessorT<C>> {
// Provided methods
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§
Sourcefn process_lines<R: Read, W: Write>(
&self,
line_processor: &P,
input: BufReader<R>,
output: &mut BufWriter<W>,
context: &C,
)
fn process_lines<R: Read, W: Write>( &self, line_processor: &P, input: BufReader<R>, output: &mut BufWriter<W>, context: &C, )
Generic line processor that delegates to concrete line processors
Sourcefn process_readable<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, )
Process readable object: Send input to the line processor
Sourcefn process_files<W: Write>(
&self,
line_processor: &P,
files: &Vec<&str>,
writable: W,
context: &C,
)
fn process_files<W: Write>( &self, line_processor: &P, files: &Vec<&str>, writable: W, context: &C, )
Process files: Send them to the line processor
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.