pub struct NativeFn {
pub name: Arc<str>,
pub arity: Arity,
}Expand description
A host-registered Rust function exposed to Lisp code. The actual
callable lives in the Interpreter<H>’s FnRegistry, keyed by
name — this struct carries just the lookup key and arity so
Value remains non-generic over H.
Fields§
§name: Arc<str>§arity: ArityTrait Implementations§
Auto Trait Implementations§
impl Freeze for NativeFn
impl RefUnwindSafe for NativeFn
impl Send for NativeFn
impl Sync for NativeFn
impl Unpin for NativeFn
impl UnsafeUnpin for NativeFn
impl UnwindSafe for NativeFn
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