Struct pagan::Function
[−]
[src]
pub struct Function<'a, 'b, F: 'b + Fn(f64, &[f64]) -> f64> { /* fields omitted */ }
Methods
impl<'a, 'c, F> Function<'a, 'c, F> where
F: 'c + Fn(f64, &[f64]) -> f64,
[src]
F: 'c + Fn(f64, &[f64]) -> f64,
pub fn new(npar: usize, _f: F) -> Self
[src]
pub fn title<'b>(&'b self) -> Option<&'b str>
[src]
pub fn with_title<S: AsRef<str>>(self, title: S) -> Self
[src]
pub fn set_title<S: AsRef<str>>(&mut self, title: S)
[src]
pub fn fmt<'b>(self, opts: &'b [PlotOption<&'a str>]) -> Self
[src]
pub fn set_fmt<'b>(&mut self, opts: &'b [PlotOption<&'a str>])
[src]
pub fn par(
self,
idx: usize,
val: f64,
err: f64,
rng: Option<(f64, f64)>
) -> Self
[src]
self,
idx: usize,
val: f64,
err: f64,
rng: Option<(f64, f64)>
) -> Self
pub fn set_parameter<'b>(
&'b mut self,
idx: usize,
val: f64,
err: f64,
rng: Option<(f64, f64)>
)
[src]
&'b mut self,
idx: usize,
val: f64,
err: f64,
rng: Option<(f64, f64)>
)
pub fn pars<'b>(&'b self) -> ParamIterator<'b>
[src]
pub fn pars_mut<'b>(&'b mut self) -> ParamIteratorMut<'b>
[src]
pub fn xrange(self, left: Option<f64>, right: Option<f64>) -> Self
[src]
pub fn set_xrange(&mut self, left: Option<f64>, right: Option<f64>)
[src]
pub fn print_pars(&self) -> String
[src]
pub fn func(&self) -> &Rc<F>
[src]
Trait Implementations
impl<'a, 'b, F: Clone + 'b + Fn(f64, &[f64]) -> f64> Clone for Function<'a, 'b, F>
[src]
fn clone(&self) -> Function<'a, 'b, F>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, 'f, 'c, F> From<(&'c Function<'a, 'f, F>, (Vec<f64>, Vec<ParamInfo>))> for Function<'a, 'f, F> where
F: 'f + Fn(f64, &[f64]) -> f64,
[src]
F: 'f + Fn(f64, &[f64]) -> f64,
fn from(fo: (&Function<'a, 'f, F>, (Vec<f64>, Vec<ParamInfo>))) -> Self
[src]
Performs the conversion.
impl<'a, 'b, F> FnOnce<(f64,)> for Function<'a, 'b, F> where
F: 'b + Fn(f64, &[f64]) -> f64,
[src]
F: 'b + Fn(f64, &[f64]) -> f64,
type Output = f64
The returned type after the call operator is used.
extern "rust-call" fn call_once(self, x: (f64,)) -> Self::Output
[src]
🔬 This is a nightly-only experimental API. (
fn_traits
)Performs the call operation.
impl<'a, 'b, F> FnMut<(f64,)> for Function<'a, 'b, F> where
F: 'b + Fn(f64, &[f64]) -> f64,
[src]
F: 'b + Fn(f64, &[f64]) -> f64,
extern "rust-call" fn call_mut(&mut self, x: (f64,)) -> f64
[src]
🔬 This is a nightly-only experimental API. (
fn_traits
)Performs the call operation.
impl<'a, 'b, F> Fn<(f64,)> for Function<'a, 'b, F> where
F: 'b + Fn(f64, &[f64]) -> f64,
[src]
F: 'b + Fn(f64, &[f64]) -> f64,