pub struct ClGenericFunction { /* private fields */ }Expand description
CL-lite generic function (defgeneric / defmethod) over the dispatch organ.
Implementations§
Source§impl ClGenericFunction
impl ClGenericFunction
Sourcepub fn add_primary_method(
&mut self,
id: Symbol,
parameter_shapes: Vec<Arc<dyn Shape>>,
body: MethodBody,
) -> Result<()>
pub fn add_primary_method( &mut self, id: Symbol, parameter_shapes: Vec<Arc<dyn Shape>>, body: MethodBody, ) -> Result<()>
Adds a primary method keyed by its parameter shapes.
Sourcepub fn select_primary(
&self,
cx: &mut Cx,
args: &[Value],
) -> Result<MethodSpecificity>
pub fn select_primary( &self, cx: &mut Cx, args: &[Value], ) -> Result<MethodSpecificity>
Selects the most specific primary method for the given arguments.
Auto Trait Implementations§
impl !RefUnwindSafe for ClGenericFunction
impl !UnwindSafe for ClGenericFunction
impl Freeze for ClGenericFunction
impl Send for ClGenericFunction
impl Sync for ClGenericFunction
impl Unpin for ClGenericFunction
impl UnsafeUnpin for ClGenericFunction
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