[][src]Trait valid::property::HasDecimalDigits

pub trait HasDecimalDigits {
    fn integer_digits(&self) -> u64;
fn fraction_digits(&self) -> u64; }

Properties of a decimal number.

Required methods

fn integer_digits(&self) -> u64

Returns the number of integer digits

These are the digits to the left of the decimal point

fn fraction_digits(&self) -> u64

Returns the number of fractional digits

These are the digits to the right of the decimal point

Loading content...

Implementations on Foreign Types

impl HasDecimalDigits for BigDecimal[src]

Loading content...

Implementors

Loading content...