Struct libspartan::Instance [−][src]
pub struct Instance { /* fields omitted */ }Expand description
Instance holds the description of R1CS matrices
Implementations
Constructs a new Instance and an associated satisfying assignment
pub fn is_sat(
&self,
vars: &VarsAssignment,
inputs: &InputsAssignment
) -> Result<bool, R1CSError>
pub fn is_sat(
&self,
vars: &VarsAssignment,
inputs: &InputsAssignment
) -> Result<bool, R1CSError>
Checks if a given R1CSInstance is satisfiable with a given variables and inputs assignments
pub fn produce_synthetic_r1cs(
num_cons: usize,
num_vars: usize,
num_inputs: usize
) -> (Instance, VarsAssignment, InputsAssignment)
pub fn produce_synthetic_r1cs(
num_cons: usize,
num_vars: usize,
num_inputs: usize
) -> (Instance, VarsAssignment, InputsAssignment)
Constructs a new synthetic R1CS Instance and an associated satisfying assignment
Auto Trait Implementations
impl RefUnwindSafe for Instance
impl UnwindSafe for Instance
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast(self) -> U
pub fn cast(self) -> U
Numeric cast from self to T.
pub fn from_bits(t: T) -> T
pub fn from_bits(t: T) -> T
Safe lossless bitwise transmute from T to Self.
pub fn from_cast(t: T) -> T
pub fn from_cast(t: T) -> T
Numeric cast from T to Self.
pub fn into_bits(self) -> U
pub fn into_bits(self) -> U
Safe lossless bitwise transmute from self to T.