pub struct TripletFormula {
pub triplets: Vec<(TripletVar, TripletVar, TripletVar)>,
pub bridge_vars: HashMap<TripletVar, usize>,
pub next_bridge_var: i32,
pub root_var: Option<TripletVar>,
pub max_original_var: i32,
}
Expand description
Represents a formula in triplet form for Stalmarck’s algorithm
Fields§
§triplets: Vec<(TripletVar, TripletVar, TripletVar)>
Collection of triplets (a, b, c) where each represents a logical relation
bridge_vars: HashMap<TripletVar, usize>
Mapping from bridge variables (b1, b2, etc.) to their corresponding triplet index
next_bridge_var: i32
The next available bridge variable ID
root_var: Option<TripletVar>
The root variable representing the entire formula
max_original_var: i32
Maximum original variable ID (not including bridge variables)
Trait Implementations§
Source§impl Clone for TripletFormula
impl Clone for TripletFormula
Source§fn clone(&self) -> TripletFormula
fn clone(&self) -> TripletFormula
Returns a copy 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 TripletFormula
impl Debug for TripletFormula
Source§impl PartialEq for TripletFormula
impl PartialEq for TripletFormula
impl StructuralPartialEq for TripletFormula
Auto Trait Implementations§
impl Freeze for TripletFormula
impl RefUnwindSafe for TripletFormula
impl Send for TripletFormula
impl Sync for TripletFormula
impl Unpin for TripletFormula
impl UnwindSafe for TripletFormula
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