pub struct ConstraintResult<'a, Sc> {
pub name: &'a str,
pub score: Sc,
pub match_count: usize,
pub is_hard: bool,
pub weight_multiplier: u32,
}Expand description
Result of evaluating a single constraint.
Fields§
§name: &'a strConstraint name.
score: ScScore contribution from this constraint.
match_count: usizeNumber of matches for this constraint.
is_hard: boolWhether this is a hard constraint.
weight_multiplier: u32Bound runtime weight multiplier; 0 means the constraint is disabled.
Trait Implementations§
Source§impl<'a, Sc: Clone> Clone for ConstraintResult<'a, Sc>
impl<'a, Sc: Clone> Clone for ConstraintResult<'a, Sc>
Auto Trait Implementations§
impl<'a, Sc> Forget for ConstraintResult<'a, Sc>
impl<'a, Sc> Freeze for ConstraintResult<'a, Sc>where
Sc: Freeze,
impl<'a, Sc> RefUnwindSafe for ConstraintResult<'a, Sc>where
Sc: RefUnwindSafe,
impl<'a, Sc> Send for ConstraintResult<'a, Sc>where
Sc: Send,
impl<'a, Sc> Sync for ConstraintResult<'a, Sc>where
Sc: Sync,
impl<'a, Sc> Unpin for ConstraintResult<'a, Sc>where
Sc: Unpin,
impl<'a, Sc> UnsafeUnpin for ConstraintResult<'a, Sc>where
Sc: UnsafeUnpin,
impl<'a, Sc> UnwindSafe for ConstraintResult<'a, Sc>where
Sc: UnwindSafe,
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