pub struct CnfEncoding {
pub cnf: CnfFormula,
pub node_var: BTreeMap<PirNodeId, u32>,
pub leaf_var: BTreeMap<LeafId, u32>,
pub choice_var: BTreeMap<ChoiceVarId, u32>,
}Expand description
A Tseitin encoding together with maps from PIR identities to CNF variables.
Fields§
§cnf: CnfFormulaThe encoded conjunctive-normal-form formula.
node_var: BTreeMap<PirNodeId, u32>CNF variable assigned to each encoded PIR node.
leaf_var: BTreeMap<LeafId, u32>CNF variable assigned to each probabilistic leaf.
choice_var: BTreeMap<ChoiceVarId, u32>CNF variable assigned to each exclusive-choice variable.
Trait Implementations§
Source§impl Clone for CnfEncoding
impl Clone for CnfEncoding
Source§fn clone(&self) -> CnfEncoding
fn clone(&self) -> CnfEncoding
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 moreAuto Trait Implementations§
impl Freeze for CnfEncoding
impl RefUnwindSafe for CnfEncoding
impl Send for CnfEncoding
impl Sync for CnfEncoding
impl Unpin for CnfEncoding
impl UnsafeUnpin for CnfEncoding
impl UnwindSafe for CnfEncoding
Blanket Implementations§
impl<T> Allocation for T
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