pub enum BiasStrategy {
None,
Exponential,
Weighted,
Power(f64),
Stepped,
}Expand description
Strategies for biasing the random number generator. Used by the task router to select nodes.
Variants§
Trait Implementations§
Source§impl Clone for BiasStrategy
impl Clone for BiasStrategy
Source§fn clone(&self) -> BiasStrategy
fn clone(&self) -> BiasStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BiasStrategy
Auto Trait Implementations§
impl Freeze for BiasStrategy
impl RefUnwindSafe for BiasStrategy
impl Send for BiasStrategy
impl Sync for BiasStrategy
impl Unpin for BiasStrategy
impl UnsafeUnpin for BiasStrategy
impl UnwindSafe for BiasStrategy
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