pub struct IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>where
Sc: Score,{ /* private fields */ }Implementations§
Source§impl<S, A, K, E, KE, F, W, Sc> IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
impl<S, A, K, E, KE, F, W, Sc> IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
pub fn new( constraint_ref: ConstraintRef, impact_type: ImpactType, extractor: E, key_extractor: KE, filter: F, weight: W, is_hard: bool, ) -> IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
pub fn with_descriptor( self, descriptor_index: usize, ) -> IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
Trait Implementations§
Source§impl<S, A, K, E, KE, F, W, Sc> Debug for IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>where
Sc: Score,
impl<S, A, K, E, KE, F, W, Sc> Debug for IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>where
Sc: Score,
Source§impl<S, A, K, E, KE, F, W, Sc> IncrementalConstraint<S, Sc> for IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
impl<S, A, K, E, KE, F, W, Sc> IncrementalConstraint<S, Sc> for IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
fn evaluate(&self, solution: &S) -> Sc
fn match_count(&self, solution: &S) -> usize
fn initialize(&mut self, solution: &S) -> Sc
fn on_insert( &mut self, solution: &S, entity_index: usize, descriptor_index: usize, ) -> Sc
fn on_retract( &mut self, solution: &S, entity_index: usize, descriptor_index: usize, ) -> Sc
fn reset(&mut self)
fn name(&self) -> &str
fn is_hard(&self) -> bool
fn constraint_ref(&self) -> ConstraintRef
fn get_matches(&self, solution: &S) -> Vec<DetailedConstraintMatch<Sc>>
fn weight(&self) -> Sc
Auto Trait Implementations§
impl<S, A, K, E, KE, F, W, Sc> Freeze for IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
impl<S, A, K, E, KE, F, W, Sc> RefUnwindSafe for IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
impl<S, A, K, E, KE, F, W, Sc> Send for IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
impl<S, A, K, E, KE, F, W, Sc> Sync for IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
impl<S, A, K, E, KE, F, W, Sc> Unpin for IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
impl<S, A, K, E, KE, F, W, Sc> UnsafeUnpin for IncrementalBiConstraint<S, A, K, E, KE, F, W, Sc>
impl<S, A, K, E, KE, F, W, Sc> UnwindSafe for IncrementalBiConstraint<S, A, K, E, KE, F, W, 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more