pub struct Function<X: AsF64, Y: AsF64, F: Fn(X) -> Y> { /* private fields */ }Implementations§
Source§impl<X: AsF64, Y: AsF64, F: Fn(X) -> Y> Function<X, Y, F>
impl<X: AsF64, Y: AsF64, F: Fn(X) -> Y> Function<X, Y, F>
pub fn new(f: F) -> Function<X, Y, F>
pub fn at(&self, x: f64) -> f64
pub fn pt(&self, x: f64) -> (f64, f64)
pub fn rng(&self, x_i: u32, x_f: u32) -> Vec<f64>
pub fn rng_x(&self, x_i: u32, x_f: u32) -> Vec<(u32, f64)>
pub fn rng_x_scale( &self, x_i: u32, x_f: u32, scales: &Scales, ) -> Vec<(f64, f64)>
Trait Implementations§
Auto Trait Implementations§
impl<X, Y, F> Freeze for Function<X, Y, F>where
F: Freeze,
impl<X, Y, F> RefUnwindSafe for Function<X, Y, F>
impl<X, Y, F> Send for Function<X, Y, F>
impl<X, Y, F> Sync for Function<X, Y, F>
impl<X, Y, F> Unpin for Function<X, Y, F>
impl<X, Y, F> UnwindSafe for Function<X, Y, F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more