pub struct OwnedNativeFunction {
pub arity: usize,
pub implementation: Rc<dyn Fn(&[Real]) -> Real>,
pub name: String,
pub description: Option<String>,
}Fields§
§arity: usize§implementation: Rc<dyn Fn(&[Real]) -> Real>§name: String§description: Option<String>Trait Implementations§
Source§impl From<&NativeFunction> for OwnedNativeFunction
impl From<&NativeFunction> for OwnedNativeFunction
Source§fn from(nf: &NativeFunction) -> Self
fn from(nf: &NativeFunction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OwnedNativeFunction
impl !Send for OwnedNativeFunction
impl !Sync for OwnedNativeFunction
impl !UnwindSafe for OwnedNativeFunction
impl Freeze for OwnedNativeFunction
impl Unpin for OwnedNativeFunction
impl UnsafeUnpin for OwnedNativeFunction
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