pub struct IslispGeneric { /* private fields */ }Expand description
ISLISP generic function backed by the shared dispatch organ.
Thin profile wrapper over GenericFunction: it adds the ISLISP surface
shape, while method selection and shape-based dispatch remain dispatch-organ
behavior rather than kernel contract.
Implementations§
Source§impl IslispGeneric
impl IslispGeneric
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<()>
Attaches a primary method keyed by its identifier and 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 IslispGeneric
impl !UnwindSafe for IslispGeneric
impl Freeze for IslispGeneric
impl Send for IslispGeneric
impl Sync for IslispGeneric
impl Unpin for IslispGeneric
impl UnsafeUnpin for IslispGeneric
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