pub enum ParentCountRule {
Exactly(usize),
AtLeast(usize),
AtLeastOdd(usize),
}Expand description
Parent-count constraint for a method.
Variants§
Exactly(usize)
Exactly this many parents.
AtLeast(usize)
At least this many parents (no parity constraint).
AtLeastOdd(usize)
At least this many parents, and the count must be odd.
Trait Implementations§
Source§impl Clone for ParentCountRule
impl Clone for ParentCountRule
Source§fn clone(&self) -> ParentCountRule
fn clone(&self) -> ParentCountRule
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 Debug for ParentCountRule
impl Debug for ParentCountRule
Source§impl PartialEq for ParentCountRule
impl PartialEq for ParentCountRule
impl Copy for ParentCountRule
impl Eq for ParentCountRule
impl StructuralPartialEq for ParentCountRule
Auto Trait Implementations§
impl Freeze for ParentCountRule
impl RefUnwindSafe for ParentCountRule
impl Send for ParentCountRule
impl Sync for ParentCountRule
impl Unpin for ParentCountRule
impl UnsafeUnpin for ParentCountRule
impl UnwindSafe for ParentCountRule
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§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.