Skip to main content

ApproxInternable

Trait ApproxInternable 

Source
pub trait ApproxInternable {
    // Required method
    fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F);
}
Expand description

Trait for types that can be interned (component-wise) in a crate::FloatPool.

Required Methods§

Source

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Interns every float in the object by calling f.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ApproxInternable for f32

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl ApproxInternable for f64

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T0: ApproxInternable> ApproxInternable for (T0,)

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T0: ApproxInternable, T1: ApproxInternable> ApproxInternable for (T0, T1)

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T0: ApproxInternable, T1: ApproxInternable, T2: ApproxInternable> ApproxInternable for (T0, T1, T2)

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T0: ApproxInternable, T1: ApproxInternable, T2: ApproxInternable, T3: ApproxInternable> ApproxInternable for (T0, T1, T2, T3)

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T0: ApproxInternable, T1: ApproxInternable, T2: ApproxInternable, T3: ApproxInternable, T4: ApproxInternable> ApproxInternable for (T0, T1, T2, T3, T4)

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T0: ApproxInternable, T1: ApproxInternable, T2: ApproxInternable, T3: ApproxInternable, T4: ApproxInternable, T5: ApproxInternable> ApproxInternable for (T0, T1, T2, T3, T4, T5)

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T0: ApproxInternable, T1: ApproxInternable, T2: ApproxInternable, T3: ApproxInternable, T4: ApproxInternable, T5: ApproxInternable, T6: ApproxInternable> ApproxInternable for (T0, T1, T2, T3, T4, T5, T6)

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T0: ApproxInternable, T1: ApproxInternable, T2: ApproxInternable, T3: ApproxInternable, T4: ApproxInternable, T5: ApproxInternable, T6: ApproxInternable, T7: ApproxInternable> ApproxInternable for (T0, T1, T2, T3, T4, T5, T6, T7)

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T0: ApproxInternable, T1: ApproxInternable, T2: ApproxInternable, T3: ApproxInternable, T4: ApproxInternable, T5: ApproxInternable, T6: ApproxInternable, T7: ApproxInternable, T8: ApproxInternable> ApproxInternable for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T0: ApproxInternable, T1: ApproxInternable, T2: ApproxInternable, T3: ApproxInternable, T4: ApproxInternable, T5: ApproxInternable, T6: ApproxInternable, T7: ApproxInternable, T8: ApproxInternable, T9: ApproxInternable> ApproxInternable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T: ApproxInternable> ApproxInternable for Option<T>

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T: ApproxInternable> ApproxInternable for &mut T

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T: ApproxInternable> ApproxInternable for [T]

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T: ApproxInternable> ApproxInternable for Box<T>

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T: ApproxInternable> ApproxInternable for Vec<T>

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Source§

impl<T: ApproxInternable, const N: usize> ApproxInternable for [T; N]

Source§

fn intern_floats<F: FnMut(&mut f64)>(&mut self, f: &mut F)

Implementors§