pub struct NativeEntry<const N: usize> {
pub name: &'static str,
pub func: NativeFn<N>,
}Expand description
A registered native function with its name.
Fields§
§name: &'static strThe name used to call this function from Lisp
func: NativeFn<N>The Rust function to call
Trait Implementations§
Source§impl<const N: usize> Clone for NativeEntry<N>
impl<const N: usize> Clone for NativeEntry<N>
Source§fn clone(&self) -> NativeEntry<N>
fn clone(&self) -> NativeEntry<N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<const N: usize> Copy for NativeEntry<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for NativeEntry<N>
impl<const N: usize> RefUnwindSafe for NativeEntry<N>
impl<const N: usize> Send for NativeEntry<N>
impl<const N: usize> Sync for NativeEntry<N>
impl<const N: usize> Unpin for NativeEntry<N>
impl<const N: usize> UnwindSafe for NativeEntry<N>
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