pub struct CompoundConstraint {
pub combinator: Combinator,
pub atoms: Vec<ConstraintSpec>,
}Expand description
Compound constraint container — disjunction / conjunction of
atomic ConstraintSpecs. Kept separate from ConstraintSpec to
avoid serde recursion-overflow on the derive macros (VecRange + Caret + Tilde variants cover ≥95% of real-world
constraints.
Fields§
§combinator: Combinator§atoms: Vec<ConstraintSpec>Implementations§
Trait Implementations§
Source§impl Clone for CompoundConstraint
impl Clone for CompoundConstraint
Source§fn clone(&self) -> CompoundConstraint
fn clone(&self) -> CompoundConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompoundConstraint
impl Debug for CompoundConstraint
Source§impl<'de> Deserialize<'de> for CompoundConstraint
impl<'de> Deserialize<'de> for CompoundConstraint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CompoundConstraint
impl PartialEq for CompoundConstraint
Source§fn eq(&self, other: &CompoundConstraint) -> bool
fn eq(&self, other: &CompoundConstraint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompoundConstraint
impl Serialize for CompoundConstraint
impl Eq for CompoundConstraint
impl StructuralPartialEq for CompoundConstraint
Auto Trait Implementations§
impl Freeze for CompoundConstraint
impl RefUnwindSafe for CompoundConstraint
impl Send for CompoundConstraint
impl Sync for CompoundConstraint
impl Unpin for CompoundConstraint
impl UnsafeUnpin for CompoundConstraint
impl UnwindSafe for CompoundConstraint
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.