Trait ClosureSink

Source
pub trait ClosureSink {
    // Required methods
    fn add_char(&mut self, c: char);
    fn add_string(&mut self, string: &str);
}
Expand description

An object that accepts characters and/or strings to be used with CaseMapCloserBorrowed::add_string_case_closure_to() and CaseMapCloserBorrowed::add_case_closure_to().

Usually this object will be some kind of set over codepoints and strings, or something that can be built into one.

An implementation is provided for CodePointInversionListBuilder, but users are encouraged to implement this trait on their own collections as needed.

Required Methods§

Source

fn add_char(&mut self, c: char)

Add a character to the set

Source

fn add_string(&mut self, string: &str)

Add a string to the set

Implementors§