pub struct FunctionHandle(/* private fields */);Expand description
Opaque handle for function dispatch.
Replaces FunctionId in the AST to support both built-in and custom functions.
Built-in functions use handles with values matching their FunctionId discriminant.
Custom functions use handles starting at CUSTOM_HANDLE_BASE.
Implementations§
Trait Implementations§
Source§impl Clone for FunctionHandle
impl Clone for FunctionHandle
Source§fn clone(&self) -> FunctionHandle
fn clone(&self) -> FunctionHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FunctionHandle
Source§impl Debug for FunctionHandle
impl Debug for FunctionHandle
impl Eq for FunctionHandle
Source§impl From<FunctionId> for FunctionHandle
impl From<FunctionId> for FunctionHandle
Source§fn from(id: FunctionId) -> Self
fn from(id: FunctionId) -> Self
Converts to this type from the input type.
Source§impl Hash for FunctionHandle
impl Hash for FunctionHandle
Source§impl PartialEq for FunctionHandle
impl PartialEq for FunctionHandle
Source§fn eq(&self, other: &FunctionHandle) -> bool
fn eq(&self, other: &FunctionHandle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FunctionHandle
Auto Trait Implementations§
impl Freeze for FunctionHandle
impl RefUnwindSafe for FunctionHandle
impl Send for FunctionHandle
impl Sync for FunctionHandle
impl Unpin for FunctionHandle
impl UnsafeUnpin for FunctionHandle
impl UnwindSafe for FunctionHandle
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