Struct vrp_core::construction::clustering::vicinity::FilterPolicy
source · pub struct FilterPolicy {
pub job_filter: Arc<dyn Fn(&Job) -> bool + Send + Sync>,
pub actor_filter: Arc<dyn Fn(&Actor) -> bool + Send + Sync>,
}
Expand description
Specifies filtering policy.
Fields§
§job_filter: Arc<dyn Fn(&Job) -> bool + Send + Sync>
Job filter.
actor_filter: Arc<dyn Fn(&Actor) -> bool + Send + Sync>
Actor filter.
Trait Implementations§
source§impl Clone for FilterPolicy
impl Clone for FilterPolicy
source§fn clone(&self) -> FilterPolicy
fn clone(&self) -> FilterPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for FilterPolicy
impl Send for FilterPolicy
impl Sync for FilterPolicy
impl Unpin for FilterPolicy
impl !UnwindSafe for FilterPolicy
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