pub struct ObjectHandle(pub u64);Expand description
Opaque handle to a language-specific object
This is used to reference objects in the host language without needing to know their concrete type in the core library. The handle is typically an index into a registry maintained by the language bridge.
§Example
use solverforge_core::ObjectHandle;
let handle = ObjectHandle::new(42);
assert_eq!(handle.id(), 42);Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl Clone for ObjectHandle
impl Clone for ObjectHandle
Source§fn clone(&self) -> ObjectHandle
fn clone(&self) -> ObjectHandle
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 ObjectHandle
impl Debug for ObjectHandle
Source§impl<'de> Deserialize<'de> for ObjectHandle
impl<'de> Deserialize<'de> for ObjectHandle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ObjectHandle> for Value
impl From<ObjectHandle> for Value
Source§fn from(handle: ObjectHandle) -> Self
fn from(handle: ObjectHandle) -> Self
Converts to this type from the input type.
Source§impl From<u64> for ObjectHandle
impl From<u64> for ObjectHandle
Source§impl Hash for ObjectHandle
impl Hash for ObjectHandle
Source§impl PartialEq for ObjectHandle
impl PartialEq for ObjectHandle
Source§impl Serialize for ObjectHandle
impl Serialize for ObjectHandle
impl Copy for ObjectHandle
impl Eq for ObjectHandle
impl StructuralPartialEq for ObjectHandle
Auto Trait Implementations§
impl Freeze for ObjectHandle
impl RefUnwindSafe for ObjectHandle
impl Send for ObjectHandle
impl Sync for ObjectHandle
impl Unpin for ObjectHandle
impl UnwindSafe for ObjectHandle
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.