pub enum PredictorKind {
Linear,
Quadratic,
Cubic,
Ewma,
HoldLast,
Custom(String),
}Expand description
Predictor kinds supported by the schema.
Variants§
Implementations§
Source§impl PredictorKind
impl PredictorKind
Sourcepub const fn min_samples(&self) -> u8
pub const fn min_samples(&self) -> u8
Minimum window samples required before this predictor can predict.
Sourcepub const fn needs_window(&self) -> bool
pub const fn needs_window(&self) -> bool
Whether this predictor needs a window parameter.
Trait Implementations§
Source§impl Clone for PredictorKind
impl Clone for PredictorKind
Source§impl Debug for PredictorKind
impl Debug for PredictorKind
impl Eq for PredictorKind
Source§impl PartialEq for PredictorKind
impl PartialEq for PredictorKind
impl StructuralPartialEq for PredictorKind
Auto Trait Implementations§
impl Freeze for PredictorKind
impl RefUnwindSafe for PredictorKind
impl Send for PredictorKind
impl Sync for PredictorKind
impl Unpin for PredictorKind
impl UnsafeUnpin for PredictorKind
impl UnwindSafe for PredictorKind
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