pub struct FunctionF32 {
pub name: String,
/* private fields */
}
Expand description
Description of a function accessible to the compiled program
Currently only functions of the form fn(f32, [f32, ..]) -> f32
are
supported.
Fields§
§name: String
Name of the function exposed to the program
Implementations§
Source§impl FunctionF32
impl FunctionF32
Sourcepub fn new_1(name: String, ptr: extern "C" fn(f32) -> f32) -> Self
pub fn new_1(name: String, ptr: extern "C" fn(f32) -> f32) -> Self
Constructs a new instance of 1-argument FunctionF32
Sourcepub fn new_2(name: String, ptr: extern "C" fn(f32, f32) -> f32) -> Self
pub fn new_2(name: String, ptr: extern "C" fn(f32, f32) -> f32) -> Self
Constructs a new instance of 2-argument FunctionF32
Auto Trait Implementations§
impl Freeze for FunctionF32
impl RefUnwindSafe for FunctionF32
impl !Send for FunctionF32
impl !Sync for FunctionF32
impl Unpin for FunctionF32
impl UnwindSafe for FunctionF32
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