Trait SplitOptionsAdapter

Source
pub trait SplitOptionsAdapter<'a, D>
where D: Clone,
{ // Required methods fn src(&self) -> &'a str; fn delimeter(&self) -> D; fn preserving_empty(&self) -> bool; fn preserving_delimeters(&self) -> bool; fn preserving_quoting(&self) -> bool; fn stripping(&self) -> bool; fn quoting(&self) -> bool; fn quoting_prefixes(&self) -> &Vec<&'a str>; fn quoting_postfixes(&self) -> &Vec<&'a str>; }
Expand description

Adapter for Split Options.

Required Methods§

Source

fn src(&self) -> &'a str

A string to split.

Source

fn delimeter(&self) -> D

A delimeter to split string.

Source

fn preserving_empty(&self) -> bool

Preserving or dropping empty splits.

Source

fn preserving_delimeters(&self) -> bool

Preserving or dropping delimeters.

Source

fn preserving_quoting(&self) -> bool

Preserving or dropping quotes.

Source

fn stripping(&self) -> bool

Stripping.

Source

fn quoting(&self) -> bool

Quoting.

Source

fn quoting_prefixes(&self) -> &Vec<&'a str>

Quoting prefixes.

Source

fn quoting_postfixes(&self) -> &Vec<&'a str>

Quoting postfixes.

Implementors§

Source§

impl<'a, D> SplitOptionsAdapter<'a, D> for SplitOptions<'a, D>
where D: Searcher + Clone + Default,