pub struct CharacterSetIntersection<A: CharacterSet, B: CharacterSet> { /* private fields */ }
Expand description
An intersection of two CharacterSet
s.
This is created by calling CharacterSet::intersection
.
Trait Implementations§
Source§impl<A: CharacterSet, B: CharacterSet> CharacterSet for CharacterSetIntersection<A, B>
impl<A: CharacterSet, B: CharacterSet> CharacterSet for CharacterSetIntersection<A, B>
Source§fn contains(&self, ch: char) -> bool
fn contains(&self, ch: char) -> bool
Returns
true
if the character set contains the given character. Read moreSource§fn union<Other: CharacterSet>(
self,
other: Other,
) -> CharacterSetUnion<Self, Other>where
Self: Sized,
fn union<Other: CharacterSet>(
self,
other: Other,
) -> CharacterSetUnion<Self, Other>where
Self: Sized,
Returns a
CharacterSet
that contains the characters in the self
set, as well as any characters in the given other
character set. Read moreSource§fn intersection<Other: CharacterSet>(
self,
other: Other,
) -> CharacterSetIntersection<Self, Other>where
Self: Sized,
fn intersection<Other: CharacterSet>(
self,
other: Other,
) -> CharacterSetIntersection<Self, Other>where
Self: Sized,
Source§fn difference<Other: CharacterSet>(
self,
other: Other,
) -> CharacterSetDifference<Self, Other>where
Self: Sized,
fn difference<Other: CharacterSet>(
self,
other: Other,
) -> CharacterSetDifference<Self, Other>where
Self: Sized,
Returns a
CharacterSet
that contains the characters in the self
character set, unless they are also contained in other
. Read moreSource§fn complement(self) -> CharacterSetComplement<Self>where
Self: Sized,
fn complement(self) -> CharacterSetComplement<Self>where
Self: Sized,
Returns a
CharacterSet
that contains all of the characters that are
NOT contained in the self
character set. Read moreSource§impl<A: Clone + CharacterSet, B: Clone + CharacterSet> Clone for CharacterSetIntersection<A, B>
impl<A: Clone + CharacterSet, B: Clone + CharacterSet> Clone for CharacterSetIntersection<A, B>
Source§fn clone(&self) -> CharacterSetIntersection<A, B>
fn clone(&self) -> CharacterSetIntersection<A, B>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<A: Debug + CharacterSet, B: Debug + CharacterSet> Debug for CharacterSetIntersection<A, B>
impl<A: Debug + CharacterSet, B: Debug + CharacterSet> Debug for CharacterSetIntersection<A, B>
Source§impl<A: Hash + CharacterSet, B: Hash + CharacterSet> Hash for CharacterSetIntersection<A, B>
impl<A: Hash + CharacterSet, B: Hash + CharacterSet> Hash for CharacterSetIntersection<A, B>
Source§impl<A: PartialEq + CharacterSet, B: PartialEq + CharacterSet> PartialEq for CharacterSetIntersection<A, B>
impl<A: PartialEq + CharacterSet, B: PartialEq + CharacterSet> PartialEq for CharacterSetIntersection<A, B>
Source§fn eq(&self, other: &CharacterSetIntersection<A, B>) -> bool
fn eq(&self, other: &CharacterSetIntersection<A, B>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<A: Copy + CharacterSet, B: Copy + CharacterSet> Copy for CharacterSetIntersection<A, B>
impl<A: Eq + CharacterSet, B: Eq + CharacterSet> Eq for CharacterSetIntersection<A, B>
impl<A: CharacterSet, B: CharacterSet> StructuralPartialEq for CharacterSetIntersection<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for CharacterSetIntersection<A, B>
impl<A, B> RefUnwindSafe for CharacterSetIntersection<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for CharacterSetIntersection<A, B>
impl<A, B> Sync for CharacterSetIntersection<A, B>
impl<A, B> Unpin for CharacterSetIntersection<A, B>
impl<A, B> UnwindSafe for CharacterSetIntersection<A, B>where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more