pub trait TruncateFixedPointToInt: FixedPointNumber {
    // Required method
    fn truncate_to_inner(&self) -> Option<Self::Inner>;
}

Required Methods§

source

fn truncate_to_inner(&self) -> Option<Self::Inner>

take a fixed point number and turns it into the truncated inner representation, e.g. FixedU128(1.23) -> 1u128

Implementations on Foreign Types§

source§

impl TruncateFixedPointToInt for FixedU128

source§

fn truncate_to_inner(&self) -> Option<<FixedU128 as FixedPointNumber>::Inner>

source§

impl TruncateFixedPointToInt for FixedI128

source§

fn truncate_to_inner(&self) -> Option<<FixedI128 as FixedPointNumber>::Inner>

Implementors§