pub trait InfDiv: Sized + AlertingDiv {
    // Required methods
    fn inf_div(&self, v: &Self) -> Fallible<Self>;
    fn neg_inf_div(&self, v: &Self) -> Fallible<Self>;
}
Expand description

Fallible division with specified rounding.

Throws an error if the ideal output is not finite or representable.

Required Methods§

source

fn inf_div(&self, v: &Self) -> Fallible<Self>

Proof Definition

For any two values self and v of type Self, self.inf_div(v) either returns Ok(out), where $out \ge self / v$, or Err(e).

source

fn neg_inf_div(&self, v: &Self) -> Fallible<Self>

Proof Definition

For any two values self and v of type Self, self.neg_inf_div(v) either returns Ok(out), where $out \le self / v$, or Err(e).

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl InfDiv for f32

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for f64

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for i8

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for i16

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for i32

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for i64

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for i128

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for isize

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for u8

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for u16

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for u32

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for u64

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for u128

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

source§

impl InfDiv for usize

source§

fn inf_div(&self, other: &Self) -> Fallible<Self>

source§

fn neg_inf_div(&self, other: &Self) -> Fallible<Self>

Implementors§