Struct parametrizer::ParametrizerFunction [−][src]
pub struct ParametrizerFunction { /* fields omitted */ }
Expand description
A pair containing a function on 64-bit float numbers and a shorthand associated with it.
Implementations
impl ParametrizerFunction
[src]
impl ParametrizerFunction
[src]pub fn new(
identifier: String,
function: fn(_: f64) -> f64
) -> ParametrizerFunction
[src]
pub fn new(
identifier: String,
function: fn(_: f64) -> f64
) -> ParametrizerFunction
[src]Function for creating a ParametrizerFunction pair for use in Parametrizer
Examples
use crate::parametrizer::ParametrizerFunction; let pair = ParametrizerFunction::new("Sin".to_string(), f64::sin); assert_eq!("sin(", pair.shorthand()); assert_eq!(2.0_f64.sin(), (pair.function())(2.0));
Auto Trait Implementations
impl RefUnwindSafe for ParametrizerFunction
impl Send for ParametrizerFunction
impl Sync for ParametrizerFunction
impl Unpin for ParametrizerFunction
impl UnwindSafe for ParametrizerFunction
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,