pub struct DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>where
Src: Source<S, Out>,
Sc: Score,{ /* private fields */ }Implementations§
Source§impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>
impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>
pub fn new( constraint_ref: ConstraintRef, impact_type: ImpactType, source: Src, filter: F, left_key_fn: KL, right_key_fn: KR, pair_filter: PF, weight: W, is_hard: bool, ) -> Self
Trait Implementations§
Source§impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> IncrementalConstraint<S, Sc> for DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>
impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> IncrementalConstraint<S, Sc> for DirectedBi<S, Out, K, Src, F, KL, KR, PF, 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 constraint_ref(&self) -> &ConstraintRef
fn is_hard(&self) -> bool
fn get_matches<'a>( &'a self, _solution: &S, ) -> Vec<DetailedConstraintMatch<'a, Sc>>
fn weight(&self) -> Sc
Auto Trait Implementations§
impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> Freeze for DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>
impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> RefUnwindSafe for DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>where
Src: RefUnwindSafe,
F: RefUnwindSafe,
KL: RefUnwindSafe,
KR: RefUnwindSafe,
PF: RefUnwindSafe,
W: RefUnwindSafe,
<Src as Source<S, Out>>::State: RefUnwindSafe,
Out: RefUnwindSafe,
K: RefUnwindSafe,
impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> Send for DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>
impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> Sync for DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>
impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> Unpin for DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>
impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> UnsafeUnpin for DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>where
Src: UnsafeUnpin,
F: UnsafeUnpin,
KL: UnsafeUnpin,
KR: UnsafeUnpin,
PF: UnsafeUnpin,
W: UnsafeUnpin,
<Src as Source<S, Out>>::State: UnsafeUnpin,
impl<S, Out, K, Src, F, KL, KR, PF, W, Sc> UnwindSafe for DirectedBi<S, Out, K, Src, F, KL, KR, PF, W, Sc>where
Src: UnwindSafe,
F: UnwindSafe,
KL: UnwindSafe,
KR: UnwindSafe,
PF: UnwindSafe,
W: UnwindSafe,
<Src as Source<S, Out>>::State: UnwindSafe,
K: UnwindSafe,
Out: 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