pub enum Scalar {
F64(f64),
F32(f32),
I64(i64),
I32(i32),
Bool(bool),
}Expand description
The result of a dtype-preserving scalar reduction (Column::sum etc.),
carrying the value in its pandas result dtype so the binding can box it as the
matching numpy scalar (np.int64 / np.float64 / np.bool_).
Variants§
F64(f64)
A float64 result (mean, an f64 column’s sum/min/max, …).
F32(f32)
A float32 result (an f32 column’s sum/min/max).
I64(i64)
An int64 result (an i64/bool column’s sum/prod, an i64 min/max).
I32(i32)
An int32 result (an i32 column’s sum/prod/min/max).
Bool(bool)
A boolean result (a bool column’s min/max).
Trait Implementations§
impl Copy for Scalar
impl StructuralPartialEq for Scalar
Auto Trait Implementations§
impl Freeze for Scalar
impl RefUnwindSafe for Scalar
impl Send for Scalar
impl Sync for Scalar
impl Unpin for Scalar
impl UnsafeUnpin for Scalar
impl UnwindSafe for Scalar
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