pub struct Inference<Identifier, Int, Label> {
pub constraint_id: ConstraintId,
pub premises: Vec<IntAtomic<Identifier, Int>>,
pub consequent: Option<IntAtomic<Identifier, Int>>,
pub generated_by: Option<ConstraintId>,
pub label: Option<Label>,
}Expand description
An inference step.
Fields§
§constraint_id: ConstraintIdThe ID of the step.
premises: Vec<IntAtomic<Identifier, Int>>The premises of the proof.
consequent: Option<IntAtomic<Identifier, Int>>The consequent of the proof. If this is None, the premises explicitly describe a
conflicting assignment.
generated_by: Option<ConstraintId>The constraint that introduced this inference.
label: Option<Label>The label that identifies the reasoning that introduced this inference.
Trait Implementations§
Source§impl<Identifier: Clone, Int: Clone, Label: Clone> Clone for Inference<Identifier, Int, Label>
impl<Identifier: Clone, Int: Clone, Label: Clone> Clone for Inference<Identifier, Int, Label>
Source§impl<Identifier: Debug, Int: Debug, Label: Debug> Debug for Inference<Identifier, Int, Label>
impl<Identifier: Debug, Int: Debug, Label: Debug> Debug for Inference<Identifier, Int, Label>
Source§impl<Identifier: PartialEq, Int: PartialEq, Label: PartialEq> PartialEq for Inference<Identifier, Int, Label>
impl<Identifier: PartialEq, Int: PartialEq, Label: PartialEq> PartialEq for Inference<Identifier, Int, Label>
impl<Identifier: Eq, Int: Eq, Label: Eq> Eq for Inference<Identifier, Int, Label>
impl<Identifier, Int, Label> StructuralPartialEq for Inference<Identifier, Int, Label>
Auto Trait Implementations§
impl<Identifier, Int, Label> Freeze for Inference<Identifier, Int, Label>
impl<Identifier, Int, Label> RefUnwindSafe for Inference<Identifier, Int, Label>
impl<Identifier, Int, Label> Send for Inference<Identifier, Int, Label>
impl<Identifier, Int, Label> Sync for Inference<Identifier, Int, Label>
impl<Identifier, Int, Label> Unpin for Inference<Identifier, Int, Label>
impl<Identifier, Int, Label> UnwindSafe for Inference<Identifier, Int, Label>
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.