pub struct PointMutation<S> {
pub actions: S,
pub rate: Option<f64>,
}Expand description
Replaces each action with probability rate (default 1/n) by a fresh random action;
at least one changes. The default mutation of the planner.
Fields§
§actions: SThe action sampler.
rate: Option<f64>The per-action probability; None means 1/n.
Trait Implementations§
Source§impl<S: Clone> Clone for PointMutation<S>
impl<S: Clone> Clone for PointMutation<S>
impl<S: Copy> Copy for PointMutation<S>
Source§impl<S: Debug> Debug for PointMutation<S>
impl<S: Debug> Debug for PointMutation<S>
Source§impl<A, S: Initializer<A>> Mutation<Vec<A>> for PointMutation<S>
impl<A, S: Initializer<A>> Mutation<Vec<A>> for PointMutation<S>
Source§impl<S: PartialEq> PartialEq for PointMutation<S>
impl<S: PartialEq> PartialEq for PointMutation<S>
impl<S: PartialEq> StructuralPartialEq for PointMutation<S>
Auto Trait Implementations§
impl<S> Forget for PointMutation<S>
impl<S> Freeze for PointMutation<S>where
S: Freeze,
impl<S> Move for PointMutation<S>
impl<S> RefUnwindSafe for PointMutation<S>where
S: RefUnwindSafe,
impl<S> Send for PointMutation<S>where
S: Send,
impl<S> Sync for PointMutation<S>where
S: Sync,
impl<S> Unpin for PointMutation<S>where
S: Unpin,
impl<S> UnsafeUnpin for PointMutation<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for PointMutation<S>where
S: UnwindSafe,
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