pub struct Set<T>(/* private fields */);Expand description
A test set, this can be used to check if a test is contained in it and is
expected to be the top level value in an ExpressionFilter.
Implementations§
Source§impl<T: Test> Set<T>
impl<T: Test> Set<T>
Sourcepub fn coerce_pat(pat: Pat) -> Set<T>
pub fn coerce_pat(pat: Pat) -> Set<T>
Construct a test set which contains all tests matching the given pattern.
This is the test set created from pattern literals like r:'foot-(\w-)+'.
Source§impl<T: 'static> Set<T>
impl<T: 'static> Set<T>
Sourcepub fn expr_comp(set: Set<T>) -> Self
pub fn expr_comp(set: Set<T>) -> Self
Construct a set which contains all tests not contained in the given set.
This is the test set created by !set.
Sourcepub fn expr_union<I>(a: Set<T>, b: Set<T>, rest: I) -> Selfwhere
I: IntoIterator<Item = Set<T>>,
pub fn expr_union<I>(a: Set<T>, b: Set<T>, rest: I) -> Selfwhere
I: IntoIterator<Item = Set<T>>,
Construct a set which contains all tests which are contained in any of the given sets.
This is the test set created by a | b.
Sourcepub fn expr_inter<I>(a: Set<T>, b: Set<T>, rest: I) -> Selfwhere
I: IntoIterator<Item = Set<T>>,
pub fn expr_inter<I>(a: Set<T>, b: Set<T>, rest: I) -> Selfwhere
I: IntoIterator<Item = Set<T>>,
Construct a set which contains all tests which are contained in all the given sets.
This is the test set created by a & b.
Sourcepub fn expr_diff(a: Set<T>, b: Set<T>) -> Self
pub fn expr_diff(a: Set<T>, b: Set<T>) -> Self
Construct a set which contains all tests which are contained in the first but not the second set.
This is the test set created by a ~ b and is equivalent to a & !b.
Sourcepub fn expr_sym_diff(a: Set<T>, b: Set<T>) -> Self
pub fn expr_sym_diff(a: Set<T>, b: Set<T>) -> Self
Construct a set which contains all tests which are contained in the either the first or the second, but not both sets.
This is the test set created by a ^ b.
Trait Implementations§
Source§impl<T> TryFromValue<T> for Set<T>
impl<T> TryFromValue<T> for Set<T>
Auto Trait Implementations§
impl<T> Freeze for Set<T>
impl<T> !RefUnwindSafe for Set<T>
impl<T> Send for Set<T>
impl<T> Sync for Set<T>
impl<T> Unpin for Set<T>
impl<T> !UnwindSafe for Set<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more