Enum satoxid::VarType [−][src]
Expand description
Type which represents every used SAT variable by the encoder. It is either a named user defined SAT variable. Or an unnamed generated SAT variable.
Variants
Named(Lit<V>)
Unnamed(i32)
Trait Implementations
impl<V: Ord> Ord for VarType<V>
[src]
impl<V: Ord> Ord for VarType<V>
[src]impl<V: PartialOrd> PartialOrd<VarType<V>> for VarType<V>
[src]
impl<V: PartialOrd> PartialOrd<VarType<V>> for VarType<V>
[src]fn partial_cmp(&self, other: &VarType<V>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &VarType<V>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<V: Copy> Copy for VarType<V>
[src]
impl<V: Eq> Eq for VarType<V>
[src]
impl<V> StructuralEq for VarType<V>
[src]
impl<V> StructuralPartialEq for VarType<V>
[src]
Auto Trait Implementations
impl<V> RefUnwindSafe for VarType<V> where
V: RefUnwindSafe,
V: RefUnwindSafe,
impl<V> Send for VarType<V> where
V: Send,
V: Send,
impl<V> Sync for VarType<V> where
V: Sync,
V: Sync,
impl<V> Unpin for VarType<V> where
V: Unpin,
V: Unpin,
impl<V> UnwindSafe for VarType<V> where
V: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, L> ConstraintRepr<V> for L where
V: SatVar,
L: Debug + Clone + Into<VarType<V>>,
[src]
impl<V, L> ConstraintRepr<V> for L where
V: SatVar,
L: Debug + Clone + Into<VarType<V>>,
[src]pub fn encode_constraint_implies_repr<S>(
Self,
Option<i32>,
&mut S,
&mut VarMap<V>
) -> i32 where
S: Backend,
[src]
pub fn encode_constraint_implies_repr<S>(
Self,
Option<i32>,
&mut S,
&mut VarMap<V>
) -> i32 where
S: Backend,
[src]Encode if Self
is satisified, that repr
is true.
pub fn encode_constraint_equals_repr<S>(
Self,
Option<i32>,
&mut S,
&mut VarMap<V>
) -> i32 where
S: Backend,
[src]
pub fn encode_constraint_equals_repr<S>(
Self,
Option<i32>,
&mut S,
&mut VarMap<V>
) -> i32 where
S: Backend,
[src]Encode if and only if Self
is satisified, that repr
is true.
pub fn encode_constraint_repr_cheap<S>(
Self,
Option<i32>,
&mut S,
&mut VarMap<V>
) -> i32 where
S: Backend,
[src]
pub fn encode_constraint_repr_cheap<S>(
Self,
Option<i32>,
&mut S,
&mut VarMap<V>
) -> i32 where
S: Backend,
[src]Encode that repr is true if the constraint is satisfied. The semantics are less restrictive for to allow for cheaper encoding. No guarantees are given about the constraints of repr if the constraint is false. Usually it has either the semantics of implies_repr or equals_repr. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V> SatVar for V where
V: Hash + Eq + Clone + Debug,
[src]
V: Hash + Eq + Clone + Debug,