pub trait AtomicConstraint:
Clone
+ Debug
+ Sized {
type Identifier: Hash + Eq;
// Required methods
fn identifier(&self) -> Self::Identifier;
fn comparison(&self) -> Comparison;
fn value(&self) -> i32;
fn negate(&self) -> Self;
}Expand description
Captures the data associated with an atomic constraint.
An atomic constraint has the form [identifier op value], where:
identifieridentifies a variable,opis aComparison,- and
valueis an integer.
Required Associated Types§
Sourcetype Identifier: Hash + Eq
type Identifier: Hash + Eq
The type of identifier used for variables.
Required Methods§
Sourcefn identifier(&self) -> Self::Identifier
fn identifier(&self) -> Self::Identifier
The identifier of this atomic constraint.
Sourcefn comparison(&self) -> Comparison
fn comparison(&self) -> Comparison
The Comparison used for this atomic constraint.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".