Struct SplitOptions

Source
pub struct SplitOptions<'a, D>
where D: Searcher + Default + Clone,
{ /* private fields */ }
Expand description

Options of function split.

Implementations§

Source§

impl<'a> SplitOptions<'a, Vec<&'a str>>

Source

pub fn split(self) -> SplitIterator<'a>
where SplitOptions<'a, Vec<&'a str>>: Sized,

Produces SplitIterator.

Source§

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

Source

pub fn split_fast(self) -> SplitFastIterator<'a, D>
where SplitOptions<'a, D>: Sized,

Produces SplitFastIterator.

Trait Implementations§

Source§

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

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

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.

Auto Trait Implementations§

§

impl<'a, D> Freeze for SplitOptions<'a, D>
where D: Freeze,

§

impl<'a, D> RefUnwindSafe for SplitOptions<'a, D>
where D: RefUnwindSafe,

§

impl<'a, D> Send for SplitOptions<'a, D>
where D: Send,

§

impl<'a, D> Sync for SplitOptions<'a, D>
where D: Sync,

§

impl<'a, D> Unpin for SplitOptions<'a, D>
where D: Unpin,

§

impl<'a, D> UnwindSafe for SplitOptions<'a, D>
where D: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.