Trait rugflo::FromRound
[−]
[src]
pub trait FromRound<Val, Prec> where
Self: Sized, { type Round; type Ordering; fn from_round(
val: Val,
prec: Prec,
round: Self::Round
) -> (Self, Self::Ordering); }
Construct Self
via a conversion with a specified precision,
applying the specified rounding method.
Associated Types
Required Methods
fn from_round(
val: Val,
prec: Prec,
round: Self::Round
) -> (Self, Self::Ordering)
val: Val,
prec: Prec,
round: Self::Round
) -> (Self, Self::Ordering)
Performs the conversion.
Implementors
impl<T> FromRound<T, i32> for Float where
Float: FromRound<T, u32, Round = Round, Ordering = Ordering>,impl FromRound<Constant, u32> for Float
impl FromRound<Special, u32> for Float
impl FromRound<Integer, u32> for Float
impl FromRound<Rational, u32> for Float
impl FromRound<Float, u32> for Float
impl<'a> FromRound<&'a Integer, u32> for Float
impl<'a> FromRound<&'a Rational, u32> for Float
impl<'a> FromRound<&'a Float, u32> for Float
impl FromRound<u32, u32> for Float
impl FromRound<i32, u32> for Float
impl FromRound<f64, u32> for Float
impl FromRound<f32, u32> for Float