ToArbitraryPrecision

Trait ToArbitraryPrecision 

Source
pub trait ToArbitraryPrecision {
    type ArbitraryType;

    // Required methods
    fn to_arbitrary(&self) -> Self::ArbitraryType;
    fn to_arbitraryprec(&self, prec: u32) -> CoreResult<Self::ArbitraryType>;
}
Expand description

Conversion trait for arbitrary precision types

Required Associated Types§

Source

type ArbitraryType

The arbitrary precision type

Required Methods§

Source

fn to_arbitrary(&self) -> Self::ArbitraryType

Convert to arbitrary precision with default precision

Source

fn to_arbitraryprec(&self, prec: u32) -> CoreResult<Self::ArbitraryType>

Convert to arbitrary precision with specified precision

Implementations on Foreign Types§

Source§

impl ToArbitraryPrecision for f32

Source§

impl ToArbitraryPrecision for f64

Source§

impl ToArbitraryPrecision for i32

Source§

impl ToArbitraryPrecision for i64

Implementors§