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