pub enum RecreateMethod {
Cheapest {
weight: usize,
},
SkipBest {
weight: usize,
start: usize,
end: usize,
},
Blinks {
weight: usize,
},
Gaps {
weight: usize,
min: usize,
max: usize,
},
Nearest {
weight: usize,
},
SkipRandom {
weight: usize,
},
Slice {
weight: usize,
},
Farthest {
weight: usize,
},
Perturbation {
weight: usize,
probability: Float,
min: Float,
max: Float,
},
Regret {
weight: usize,
start: usize,
end: usize,
},
}Expand description
Specifies recreate methods with their probability weight and specific parameters.
Variants§
Cheapest
Cheapest insertion method.
SkipBest
SkipBest insertion method.
Blinks
Insertion with blinks method.
Gaps
Insertion with gaps method.
Nearest
Nearest neighbour method.
SkipRandom
Insertion with skip random method.
Slice
Insertion with slice method.
Farthest
Farthest insertion method.
Perturbation
Insertion with perturbation method.
Regret
Insertion with regret method.
Trait Implementations§
Source§impl Clone for RecreateMethod
impl Clone for RecreateMethod
Source§fn clone(&self) -> RecreateMethod
fn clone(&self) -> RecreateMethod
Returns a duplicate 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 moreSource§impl Debug for RecreateMethod
impl Debug for RecreateMethod
Source§impl<'de> Deserialize<'de> for RecreateMethod
impl<'de> Deserialize<'de> for RecreateMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RecreateMethod
impl RefUnwindSafe for RecreateMethod
impl Send for RecreateMethod
impl Sync for RecreateMethod
impl Unpin for RecreateMethod
impl UnwindSafe for RecreateMethod
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> 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