pub enum Restrict<R> {
Any(R),
All(R),
First(R),
Last(R),
Count(Vec<Ordering>, usize),
}Variants§
Trait Implementations§
Source§impl From<Restrict<MaintainerRestrict>> for Restrict
impl From<Restrict<MaintainerRestrict>> for Restrict
Source§fn from(r: OrderedRestrict<MaintainerRestrict>) -> Self
fn from(r: OrderedRestrict<MaintainerRestrict>) -> Self
Converts to this type from the input type.
Source§impl Restriction<&[Maintainer]> for Restrict<MaintainerRestrict>
impl Restriction<&[Maintainer]> for Restrict<MaintainerRestrict>
fn matches(&self, val: &[Maintainer]) -> bool
Source§impl Restriction<&OrderedSet<String>> for Restrict<Restrict>
impl Restriction<&OrderedSet<String>> for Restrict<Restrict>
impl<R: Eq> Eq for Restrict<R>
impl<R> StructuralPartialEq for Restrict<R>
Auto Trait Implementations§
impl<R> Freeze for Restrict<R>where
R: Freeze,
impl<R> RefUnwindSafe for Restrict<R>where
R: RefUnwindSafe,
impl<R> Send for Restrict<R>where
R: Send,
impl<R> Sync for Restrict<R>where
R: Sync,
impl<R> Unpin for Restrict<R>where
R: Unpin,
impl<R> UnwindSafe for Restrict<R>where
R: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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