pub struct Strategy {
pub name: String,
pub weight: f64,
pub success_count: u32,
pub fail_count: u32,
pub idle_steps: u32,
}Expand description
Data structure representing strategy.
Fields§
§name: StringName used to identify this parameter or action.
weight: f64Weight for this value.
success_count: u32Number of success.
fail_count: u32Number of fail.
idle_steps: u32Steps since this strategy was last selected / bumped.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Strategy
impl<'de> Deserialize<'de> for Strategy
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 Forget for Strategy
impl Freeze for Strategy
impl Move for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategywhere
RawVecInner: Send,
impl Sync for Strategywhere
RawVecInner: Sync,
impl Unpin for Strategy
impl UnsafeUnpin for Strategy
impl UnwindSafe for Strategywhere
RawVecInner: 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