pub trait InfPowI: Sized + AlertingPow {
// Required methods
fn inf_powi(&self, p: IBig) -> Fallible<Self>;
fn neg_inf_powi(&self, p: IBig) -> Fallible<Self>;
}
Expand description
Fallibly raise self to the power with specified rounding.
Throws an error if the ideal output is not finite or representable.
Required Methods§
sourcefn inf_powi(&self, p: IBig) -> Fallible<Self>
fn inf_powi(&self, p: IBig) -> Fallible<Self>
§Proof Definition
For any two values self
and p
of type Self
,
self.inf_powi(p)
either returns Ok(out)
,
where $out \ge self^{p}$, or Err(e)
.
sourcefn neg_inf_powi(&self, p: IBig) -> Fallible<Self>
fn neg_inf_powi(&self, p: IBig) -> Fallible<Self>
§Proof Definition
For any two values self
and p
of type Self
,
self.neg_inf_powi(p)
either returns Ok(out)
,
where $out \le self^{p}$, or Err(e)
.
Object Safety§
This trait is not object safe.