pub struct JuliaFunction { /* private fields */ }Expand description
Julia multiple-dispatch function backed by the shared dispatch organ.
Thin profile wrapper over GenericFunction: it presents the Julia
surface, while argument specificity and method selection remain
dispatch-organ behavior rather than kernel contract.
Implementations§
Source§impl JuliaFunction
impl JuliaFunction
Sourcepub fn add_method(
&mut self,
method: Symbol,
argument_shapes: Vec<Arc<dyn Shape>>,
body: MethodBody,
) -> Result<()>
pub fn add_method( &mut self, method: Symbol, argument_shapes: Vec<Arc<dyn Shape>>, body: MethodBody, ) -> Result<()>
Adds a primary method keyed by its name and argument shapes.
Auto Trait Implementations§
impl !RefUnwindSafe for JuliaFunction
impl !UnwindSafe for JuliaFunction
impl Freeze for JuliaFunction
impl Send for JuliaFunction
impl Sync for JuliaFunction
impl Unpin for JuliaFunction
impl UnsafeUnpin for JuliaFunction
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