[][src]Trait rcut::ProcessChar

pub trait ProcessChar {
    fn process_lines<P: ProcessLineByChar, R: Read, W: Write>(
        &self,
        line_processor: P,
        input: BufReader<R>,
        output: &mut BufWriter<W>,
        ranged_pairs: &Vec<(usize, usize)>
    );
fn process_readable<R: Read, W: Write>(
        &self,
        input: BufReader<R>,
        output: &mut BufWriter<W>,
        ascii_mode: bool,
        ranged_pairs: &Vec<(usize, usize)>
    );
fn process_files<W: Write>(
        &self,
        files: &Vec<&str>,
        writable: W,
        ascii_mode: bool,
        ranged_pairs: &Vec<(usize, usize)>
    );
fn process(&self, char_mode: &CharMode); }

Required methods

fn process_lines<P: ProcessLineByChar, R: Read, W: Write>(
    &self,
    line_processor: P,
    input: BufReader<R>,
    output: &mut BufWriter<W>,
    ranged_pairs: &Vec<(usize, usize)>
)

fn process_readable<R: Read, W: Write>(
    &self,
    input: BufReader<R>,
    output: &mut BufWriter<W>,
    ascii_mode: bool,
    ranged_pairs: &Vec<(usize, usize)>
)

fn process_files<W: Write>(
    &self,
    files: &Vec<&str>,
    writable: W,
    ascii_mode: bool,
    ranged_pairs: &Vec<(usize, usize)>
)

fn process(&self, char_mode: &CharMode)

Loading content...

Implementors

impl ProcessChar for CharProcessor[src]

fn process_lines<P: ProcessLineByChar, R: Read, W: Write>(
    &self,
    line_processor: P,
    input: BufReader<R>,
    output: &mut BufWriter<W>,
    ranged_pairs: &Vec<(usize, usize)>
)
[src]

Generic line processor that delegates to concrete line processors

fn process_readable<R: Read, W: Write>(
    &self,
    input: BufReader<R>,
    output: &mut BufWriter<W>,
    ascii_mode: bool,
    ranged_pairs: &Vec<(usize, usize)>
)
[src]

Process readable object: Send it via rcut pipeline

fn process_files<W: Write>(
    &self,
    files: &Vec<&str>,
    writable: W,
    ascii_mode: bool,
    ranged_pairs: &Vec<(usize, usize)>
)
[src]

Process files: Send them via rcut pipeline

fn process(&self, char_mode: &CharMode)[src]

Cut and paste lines by ranges of characters

Loading content...