pub struct FunctionHandle(pub u64);Expand description
Opaque handle to a language-specific callable (function/lambda)
This is used to reference functions or lambdas in the host language
that can be called from the core library. Like ObjectHandle, this
is typically an index into a registry maintained by the language bridge.
§Example
use solverforge_core::FunctionHandle;
let handle = FunctionHandle::new(1);
assert_eq!(handle.id(), 1);Tuple Fields§
§0: u64Implementations§
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionHandle
impl Debug for FunctionHandle
Source§impl From<u64> for FunctionHandle
impl From<u64> for FunctionHandle
Source§impl Hash for FunctionHandle
impl Hash for FunctionHandle
Source§impl PartialEq for FunctionHandle
impl PartialEq for FunctionHandle
impl Copy for FunctionHandle
impl Eq for FunctionHandle
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.