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§