pub enum SweepParam {
Range {
min: Box<Expr>,
max: Box<Expr>,
step: Option<Box<Expr>>,
},
Discrete(Vec<Expr>),
}Expand description
Sweep parameter for optimization Used in backtest config to specify parameter ranges for optimization
Variants§
Range
Range sweep: [min..max] or [min..max, step: step]
Discrete(Vec<Expr>)
Discrete values: [v1, v2, v3, …]
Trait Implementations§
Source§impl Clone for SweepParam
impl Clone for SweepParam
Source§fn clone(&self) -> SweepParam
fn clone(&self) -> SweepParam
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 SweepParam
impl Debug for SweepParam
Source§impl<'de> Deserialize<'de> for SweepParam
impl<'de> Deserialize<'de> for SweepParam
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
Source§impl PartialEq for SweepParam
impl PartialEq for SweepParam
Source§impl Serialize for SweepParam
impl Serialize for SweepParam
impl StructuralPartialEq for SweepParam
Auto Trait Implementations§
impl Freeze for SweepParam
impl RefUnwindSafe for SweepParam
impl Send for SweepParam
impl Sync for SweepParam
impl Unpin for SweepParam
impl UnsafeUnpin for SweepParam
impl UnwindSafe for SweepParam
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