Trait fast_escape::ContainsChar
[−]
[src]
pub trait ContainsChar { fn contains_char(&self, c: char) -> bool; fn union<T: ContainsChar>(self, other: T) -> Union<Self, T>
where
Self: Sized, { ... } }
Represents set of chars used for configuring Escaper
.
Required Methods
fn contains_char(&self, c: char) -> bool
Returns true if the set represented by the type contains c
.
Provided Methods
fn union<T: ContainsChar>(self, other: T) -> Union<Self, T> where
Self: Sized,
Self: Sized,
Combinator for creating unions of the sets.
Implementors
impl<'a, T: ContainsChar + ?Sized> ContainsChar for &'a T
impl ContainsChar for char
impl ContainsChar for [char]
impl ContainsChar for Range<char>
impl ContainsChar for RangeFrom<char>
impl ContainsChar for RangeTo<char>
impl ContainsChar for RangeFull
impl<S: BuildHasher> ContainsChar for HashSet<char, S>
impl ContainsChar for BTreeSet<char>
impl<A: ContainsChar, B: ContainsChar> ContainsChar for Union<A, B>
impl<F: Fn(char) -> bool> ContainsChar for Predicate<F>