pub struct Defuns {
pub funcs: HashMap<String, Func>,
}Fields§
§funcs: HashMap<String, Func>Implementations§
Source§impl Defuns
impl Defuns
pub fn new() -> Defuns
pub fn add_func(&mut self, name: &str, p: *const usize, num_args: usize)
pub fn add_unary(&mut self, name: &str, f: extern "C" fn(f64) -> f64)
pub fn add_binary(&mut self, name: &str, f: extern "C" fn(f64, f64) -> f64)
pub fn add_unary_complex( &mut self, name: &str, f: extern "C" fn(f64, f64, &mut Complex<f64>), )
pub fn add_binary_complex( &mut self, name: &str, f: extern "C" fn(f64, f64, &mut Complex<f64>), )
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Defuns
impl RefUnwindSafe for Defuns
impl Send for Defuns
impl Sync for Defuns
impl Unpin for Defuns
impl UnsafeUnpin for Defuns
impl UnwindSafe for Defuns
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more