pub enum Restrict {
True,
False,
Dep(Restrict),
Pkg(Restrict),
Str(Restrict),
And(Vec<Box<Self>>),
Or(Vec<Box<Self>>),
Xor(Vec<Box<Self>>),
Not(Box<Self>),
}Variants§
True
False
Dep(Restrict)
Pkg(Restrict)
Str(Restrict)
And(Vec<Box<Self>>)
Or(Vec<Box<Self>>)
Xor(Vec<Box<Self>>)
Not(Box<Self>)
Implementations§
source§impl Restrict
impl Restrict
pub fn and<I, T>(iter: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<Self>,
pub fn or<I, T>(iter: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<Self>,
pub fn xor<I, T>(iter: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<Self>,
pub fn not<T>(obj: T) -> Selfwhere
T: Into<Self>,
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 PartialEq for Restrict
impl PartialEq for Restrict
source§impl Restriction<&Dependency<String, Dep<String>>> for Restrict
impl Restriction<&Dependency<String, Dep<String>>> for Restrict
source§impl Restriction<&DependencySet<String, Dep<String>>> for Restrict
impl Restriction<&DependencySet<String, Dep<String>>> for Restrict
source§impl<'a> Restriction<&'a Pkg<'a>> for Restrict
impl<'a> Restriction<&'a Pkg<'a>> for Restrict
source§impl<'a> Restriction<&'a Pkg<'a>> for Restrict
impl<'a> Restriction<&'a Pkg<'a>> for Restrict
source§impl<'a> Restriction<&'a Pkg<'a>> for Restrict
impl<'a> Restriction<&'a Pkg<'a>> for Restrict
source§impl<'a, 'b> Restriction<&'a Pkg<'b>> for Restrict
impl<'a, 'b> Restriction<&'a Pkg<'b>> for Restrict
impl Eq for Restrict
impl StructuralPartialEq for Restrict
Auto Trait Implementations§
impl RefUnwindSafe for Restrict
impl Send for Restrict
impl Sync for Restrict
impl Unpin for Restrict
impl UnwindSafe for Restrict
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.