ZeroOpr

Trait ZeroOpr 

Source
pub trait ZeroOpr<T> {
    // Required method
    fn is_zero(&self, x: &T) -> bool;

    // Provided method
    fn precision(&self) -> Option<&T> { ... }
}

Required Methods§

Source

fn is_zero(&self, x: &T) -> bool

Provided Methods§

Source

fn precision(&self) -> Option<&T>

Trait Implementations§

Source§

impl<T> Fn(&T) for &dyn ZeroOpr<T>

Source§

extern "rust-call" fn call(&self, (x): (&T,)) -> Self::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
Source§

impl<T> Fn(&T) for Box<dyn ZeroOpr<T>>

Source§

extern "rust-call" fn call(&self, (x): (&T,)) -> Self::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
Source§

impl<T> FnMut(&T) for &dyn ZeroOpr<T>

Source§

extern "rust-call" fn call_mut(&mut self, (x): (&T,)) -> bool

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
Source§

impl<T> FnMut(&T) for Box<dyn ZeroOpr<T>>

Source§

extern "rust-call" fn call_mut(&mut self, (x): (&T,)) -> bool

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
Source§

impl<T> FnOnce(&T) for &dyn ZeroOpr<T>

Source§

type Output = bool

The returned type after the call operator is used.
Source§

extern "rust-call" fn call_once(self, (x): (&T,)) -> Self::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.
Source§

impl<T> FnOnce(&T) for Box<dyn ZeroOpr<T>>

Source§

type Output = bool

The returned type after the call operator is used.
Source§

extern "rust-call" fn call_once(self, (x): (&T,)) -> Self::Output

🔬This is a nightly-only experimental API. (fn_traits)
Performs the call operation.

Implementors§

Source§

impl<T: SemiArithmetic + PartialEq> ZeroOpr<T> for ZeroInt

Source§

impl<T: PartialOrd> ZeroOpr<T> for ZeroFlt<T>
where for<'a> &'a T: Abs, for<'a> <&'a T as Abs>::Output: PartialOrd<T>,