pub trait TryIntoF64 {
    // Required method
    fn try_as_f64(&self) -> Result<Option<f64>>;
}
Expand description

This trait is implemented for each type a TDigest can operate on, allowing it to support both numerical rust types (obtained from PrimitiveArray instances), and ScalarValue instances.

Required Methods§

source

fn try_as_f64(&self) -> Result<Option<f64>>

A fallible conversion of a possibly null self into a f64.

If self is null, this method must return Ok(None).

If self cannot be coerced to the desired type, this method must return an Err variant.

Implementations on Foreign Types§

source§

impl TryIntoF64 for f32

source§

impl TryIntoF64 for f64

source§

impl TryIntoF64 for i8

source§

impl TryIntoF64 for i16

source§

impl TryIntoF64 for i32

source§

impl TryIntoF64 for i64

source§

impl TryIntoF64 for u8

source§

impl TryIntoF64 for u16

source§

impl TryIntoF64 for u32

source§

impl TryIntoF64 for u64

Implementors§