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