#[non_exhaustive]pub struct RolloutSettings {
pub candidates: u32,
pub samples: u32,
pub horizon: Horizon,
pub commands: u32,
pub temperature: u32,
}Expand description
How a Rollout bot thinks: data, so a persona’s settings can be a
file. Build it with RolloutSettings::new (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.candidates: u32How many of the ordered commands are tried, from the first. 0 counts as 1.
samples: u32How many copies each candidate is played out on. 0 counts as 1.
horizon: HorizonWhen a playout stops.
commands: u32The most commands a playout applies after the candidate, so a playout player that never ends its side’s move can’t run forever.
temperature: u32How far from the best the pick may stray, in points: a candidate this many points below the best is half as likely. 0 always picks the best.
Implementations§
Trait Implementations§
Source§impl Clone for RolloutSettings
impl Clone for RolloutSettings
Source§fn clone(&self) -> RolloutSettings
fn clone(&self) -> RolloutSettings
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 RolloutSettings
Source§impl Debug for RolloutSettings
impl Debug for RolloutSettings
Source§impl<'de> Deserialize<'de> for RolloutSettings
impl<'de> Deserialize<'de> for RolloutSettings
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
impl Eq for RolloutSettings
Source§impl PartialEq for RolloutSettings
impl PartialEq for RolloutSettings
Source§impl Serialize for RolloutSettings
impl Serialize for RolloutSettings
impl StructuralPartialEq for RolloutSettings
Auto Trait Implementations§
impl Freeze for RolloutSettings
impl RefUnwindSafe for RolloutSettings
impl Send for RolloutSettings
impl Sync for RolloutSettings
impl Unpin for RolloutSettings
impl UnsafeUnpin for RolloutSettings
impl UnwindSafe for RolloutSettings
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