Skip to main content

Numeric

Trait Numeric 

Source
pub trait Numeric {
    // Required method
    fn number(&self) -> Option<Number>;
}
Expand description

A field a TextColumn can spell as a number or an amount of money: every integer and float type, rust_decimal::Decimal and bigdecimal::BigDecimal with the features of those names, and an Option of one, which reads as the table’s dash when None.

Required Methods§

Source

fn number(&self) -> Option<Number>

The value, None when it holds none.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Numeric for f32

Source§

impl Numeric for f64

Source§

impl Numeric for i8

Source§

impl Numeric for i16

Source§

impl Numeric for i32

Source§

impl Numeric for i64

Source§

impl Numeric for u8

Source§

impl Numeric for u16

Source§

impl Numeric for u32

Source§

impl Numeric for u64

Source§

impl<T: Numeric + ?Sized> Numeric for &T

Source§

impl<T: Numeric> Numeric for Option<T>

Implementors§