pub enum Value {
Show 17 variants
Missing(ScalarType),
Bool(bool),
Integer(i64),
Number(f64),
Price(f64),
Ratio(f64),
Percent(f64),
PricePerObservation(f64),
PricePerObservationSquared(f64),
RatioPerObservation(f64),
RatioPerObservationSquared(f64),
LogReturn(f64),
LogReturnVariance(f64),
Timestamp(NaiveDateTime),
Duration(Duration),
Text(String),
Side(Side),
}Expand description
A typed runtime value. Missing always retains its scalar type.
Variants§
Missing(ScalarType)
Bool(bool)
Integer(i64)
Number(f64)
Price(f64)
Ratio(f64)
Percent(f64)
PricePerObservation(f64)
PricePerObservationSquared(f64)
RatioPerObservation(f64)
RatioPerObservationSquared(f64)
LogReturn(f64)
LogReturnVariance(f64)
Timestamp(NaiveDateTime)
Duration(Duration)
Text(String)
Side(Side)
Implementations§
Source§impl Value
impl Value
pub fn scalar_type(&self) -> ScalarType
pub fn is_missing(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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