pub struct ConstraintSystem<'a> {
pub constraints: Vec<ConstraintRequest>,
/* private fields */
}Expand description
A constraint system that ezpz could solve, built from the ezpz text format.
Fields§
§constraints: Vec<ConstraintRequest>Constraints from the text input.
Implementations§
Source§impl ConstraintSystem<'_>
impl ConstraintSystem<'_>
Sourcepub fn solve_no_metadata(
&self,
config: Config,
) -> Result<SolveOutcome, FailureOutcome>
pub fn solve_no_metadata( &self, config: Config, ) -> Result<SolveOutcome, FailureOutcome>
Solve, without carrying through metadata about the solve.
Sourcepub fn solve(&self) -> Result<Outcome, FailureOutcome>
pub fn solve(&self) -> Result<Outcome, FailureOutcome>
Solve, with metadata about the solve.
Sourcepub fn solve_with_config_analysis(
&self,
config: Config,
) -> Result<OutcomeAnalysis, FailureOutcome>
pub fn solve_with_config_analysis( &self, config: Config, ) -> Result<OutcomeAnalysis, FailureOutcome>
Solve, and analyze the degrees of freedom.
Sourcepub fn solve_with_config(
&self,
config: Config,
) -> Result<Outcome, FailureOutcome>
pub fn solve_with_config( &self, config: Config, ) -> Result<Outcome, FailureOutcome>
Solve, but give a non-default config.
Trait Implementations§
Source§impl<'a> Clone for ConstraintSystem<'a>
impl<'a> Clone for ConstraintSystem<'a>
Source§fn clone(&self) -> ConstraintSystem<'a>
fn clone(&self) -> ConstraintSystem<'a>
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<'a> Freeze for ConstraintSystem<'a>
impl<'a> RefUnwindSafe for ConstraintSystem<'a>
impl<'a> Send for ConstraintSystem<'a>
impl<'a> Sync for ConstraintSystem<'a>
impl<'a> Unpin for ConstraintSystem<'a>
impl<'a> UnsafeUnpin for ConstraintSystem<'a>
impl<'a> UnwindSafe for ConstraintSystem<'a>
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