pub struct ListPrecedenceMakespanConstraint<S> { /* private fields */ }Implementations§
Source§impl<S> ListPrecedenceMakespanConstraint<S>
impl<S> ListPrecedenceMakespanConstraint<S>
pub fn new( constraint_ref: ConstraintRef, list_descriptor_index: usize, node_count: fn(&S) -> usize, node_duration: fn(&S, usize) -> usize, fixed_successors: fn(&S, usize, &mut Vec<usize>), list_owner_count: fn(&S) -> usize, list_len: fn(&S, usize) -> usize, list_get: fn(&S, usize, usize) -> Option<usize>, ) -> ListPrecedenceMakespanConstraint<S>
pub fn with_expected_owner( self, expected_owner: Option<fn(&S, usize) -> Option<usize>>, ) -> ListPrecedenceMakespanConstraint<S>
Trait Implementations§
Source§impl<S> IncrementalConstraint<S, HardSoftScore> for ListPrecedenceMakespanConstraint<S>
impl<S> IncrementalConstraint<S, HardSoftScore> for ListPrecedenceMakespanConstraint<S>
fn evaluate(&self, solution: &S) -> HardSoftScore
fn match_count(&self, solution: &S) -> usize
fn initialize(&mut self, solution: &S) -> HardSoftScore
fn on_insert( &mut self, solution: &S, entity_index: usize, descriptor_index: usize, ) -> HardSoftScore
fn on_retract( &mut self, _solution: &S, entity_index: usize, descriptor_index: usize, ) -> HardSoftScore
fn reset(&mut self)
fn constraint_ref(&self) -> &ConstraintRef
fn is_hard(&self) -> bool
fn weight(&self) -> HardSoftScore
fn name(&self) -> &str
fn get_matches<'a>( &'a self, _solution: &S, ) -> Vec<DetailedConstraintMatch<'a, Sc>>
Auto Trait Implementations§
impl<S> Freeze for ListPrecedenceMakespanConstraint<S>
impl<S> RefUnwindSafe for ListPrecedenceMakespanConstraint<S>
impl<S> Send for ListPrecedenceMakespanConstraint<S>
impl<S> Sync for ListPrecedenceMakespanConstraint<S>
impl<S> Unpin for ListPrecedenceMakespanConstraint<S>
impl<S> UnsafeUnpin for ListPrecedenceMakespanConstraint<S>
impl<S> UnwindSafe for ListPrecedenceMakespanConstraint<S>
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<S, Sc, C> ConstraintSet<S, Sc> for C
impl<S, Sc, C> ConstraintSet<S, Sc> for C
fn evaluate_all(&self, solution: &S) -> Sc
fn constraint_count(&self) -> usize
fn constraint_metadata_entries(&self) -> Vec<ConstraintMetadata<'_>>
fn evaluate_each<'a>(&'a self, solution: &S) -> Vec<ConstraintResult<'a, Sc>>
fn evaluate_detailed<'a>( &'a self, solution: &S, ) -> Vec<ConstraintAnalysis<'a, Sc>>
fn initialize_all(&mut self, solution: &S) -> Sc
fn on_insert_all( &mut self, solution: &S, entity_index: usize, descriptor_index: usize, ) -> Sc
fn on_retract_all( &mut self, solution: &S, entity_index: usize, descriptor_index: usize, ) -> Sc
fn reset_all(&mut self)
fn constraint_metadata(&self) -> Vec<ConstraintMetadata<'_>>
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