pub struct ConstraintAnalysis<Sc: Score> {
pub constraint_ref: ConstraintRef,
pub weight: Sc,
pub score: Sc,
pub matches: Vec<DetailedConstraintMatch<Sc>>,
pub is_hard: bool,
}Fields§
§constraint_ref: ConstraintRef§weight: Sc§score: Sc§matches: Vec<DetailedConstraintMatch<Sc>>§is_hard: boolImplementations§
Source§impl<Sc: Score> ConstraintAnalysis<Sc>
impl<Sc: Score> ConstraintAnalysis<Sc>
pub fn new( constraint_ref: ConstraintRef, weight: Sc, score: Sc, matches: Vec<DetailedConstraintMatch<Sc>>, is_hard: bool, ) -> Self
pub fn match_count(&self) -> usize
pub fn name(&self) -> &str
Trait Implementations§
Source§impl<Sc: Clone + Score> Clone for ConstraintAnalysis<Sc>
impl<Sc: Clone + Score> Clone for ConstraintAnalysis<Sc>
Source§fn clone(&self) -> ConstraintAnalysis<Sc>
fn clone(&self) -> ConstraintAnalysis<Sc>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<Sc> Freeze for ConstraintAnalysis<Sc>where
Sc: Freeze,
impl<Sc> !RefUnwindSafe for ConstraintAnalysis<Sc>
impl<Sc> Send for ConstraintAnalysis<Sc>
impl<Sc> Sync for ConstraintAnalysis<Sc>
impl<Sc> Unpin for ConstraintAnalysis<Sc>where
Sc: Unpin,
impl<Sc> UnsafeUnpin for ConstraintAnalysis<Sc>where
Sc: UnsafeUnpin,
impl<Sc> !UnwindSafe for ConstraintAnalysis<Sc>
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