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§
Sourcetype ArbitraryType
type ArbitraryType
The arbitrary precision type
Required Methods§
Sourcefn to_arbitrary(&self) -> Self::ArbitraryType
fn to_arbitrary(&self) -> Self::ArbitraryType
Convert to arbitrary precision with default precision
Sourcefn to_arbitraryprec(&self, prec: u32) -> CoreResult<Self::ArbitraryType>
fn to_arbitraryprec(&self, prec: u32) -> CoreResult<Self::ArbitraryType>
Convert to arbitrary precision with specified precision