pub enum KnownGroups {
Known {
custom_groups: HashSet<String>,
},
Unavailable,
}Expand description
Known test group names for validating group() predicates.
Passed to Filterset::parse to control group name validation at
compile time.
Variants§
Known
A known set of valid group names. The group() predicate is
validated against these names during compilation.
custom_groups contains only custom (non-@global) group names.
@global is always implicitly valid and does not need to be
included.
Group names are not available in this context. If a group()
predicate reaches validation, it indicates a bug: the predicate
should have been banned during compilation for this filterset kind.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KnownGroups
impl RefUnwindSafe for KnownGroups
impl Send for KnownGroups
impl Sync for KnownGroups
impl Unpin for KnownGroups
impl UnsafeUnpin for KnownGroups
impl UnwindSafe for KnownGroups
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
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>
Converts
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>
Converts
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