pub struct ListConstructionArgs<S, V> {Show 19 fields
pub element_count: fn(&S) -> usize,
pub assigned_elements: fn(&S) -> Vec<V>,
pub entity_count: fn(&S) -> usize,
pub list_len: fn(&S, usize) -> usize,
pub list_insert: fn(&mut S, usize, usize, V),
pub list_remove: fn(&mut S, usize, usize) -> V,
pub index_to_element: fn(&S, usize) -> V,
pub descriptor_index: usize,
pub depot_fn: Option<fn(&S) -> usize>,
pub distance_fn: Option<fn(&S, usize, usize) -> i64>,
pub element_load_fn: Option<fn(&S, usize) -> i64>,
pub capacity_fn: Option<fn(&S) -> i64>,
pub assign_route_fn: Option<fn(&mut S, usize, Vec<V>)>,
pub merge_feasible_fn: Option<fn(&S, &[usize]) -> bool>,
pub k_opt_get_route: Option<fn(&S, usize) -> Vec<usize>>,
pub k_opt_set_route: Option<fn(&mut S, usize, Vec<usize>)>,
pub k_opt_depot_fn: Option<fn(&S, usize) -> usize>,
pub k_opt_distance_fn: Option<fn(&S, usize, usize) -> i64>,
pub k_opt_feasible_fn: Option<fn(&S, usize, &[usize]) -> bool>,
}Fields§
§element_count: fn(&S) -> usize§assigned_elements: fn(&S) -> Vec<V>§entity_count: fn(&S) -> usize§list_len: fn(&S, usize) -> usize§list_insert: fn(&mut S, usize, usize, V)§list_remove: fn(&mut S, usize, usize) -> V§index_to_element: fn(&S, usize) -> V§descriptor_index: usize§depot_fn: Option<fn(&S) -> usize>§distance_fn: Option<fn(&S, usize, usize) -> i64>§element_load_fn: Option<fn(&S, usize) -> i64>§capacity_fn: Option<fn(&S) -> i64>§assign_route_fn: Option<fn(&mut S, usize, Vec<V>)>§merge_feasible_fn: Option<fn(&S, &[usize]) -> bool>§k_opt_get_route: Option<fn(&S, usize) -> Vec<usize>>§k_opt_set_route: Option<fn(&mut S, usize, Vec<usize>)>§k_opt_depot_fn: Option<fn(&S, usize) -> usize>§k_opt_distance_fn: Option<fn(&S, usize, usize) -> i64>§k_opt_feasible_fn: Option<fn(&S, usize, &[usize]) -> bool>Trait Implementations§
Source§impl<S, V> Clone for ListConstructionArgs<S, V>
impl<S, V> Clone for ListConstructionArgs<S, V>
impl<S, V> Copy for ListConstructionArgs<S, V>
Auto Trait Implementations§
impl<S, V> Freeze for ListConstructionArgs<S, V>
impl<S, V> RefUnwindSafe for ListConstructionArgs<S, V>
impl<S, V> Send for ListConstructionArgs<S, V>
impl<S, V> Sync for ListConstructionArgs<S, V>
impl<S, V> Unpin for ListConstructionArgs<S, V>
impl<S, V> UnsafeUnpin for ListConstructionArgs<S, V>
impl<S, V> UnwindSafe for ListConstructionArgs<S, V>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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