pub struct HandleId(/* private fields */);Expand description
Identifier for a user value T in the binding-side registry.
The Core stores HandleId everywhere user values would otherwise sit:
cache, prevData, Data/Error payloads, dep records. Equals-substitution
under EqualsMode::Identity compares HandleId directly (a u64 ==).
Implementations§
Source§impl HandleId
impl HandleId
Sourcepub const fn new(raw: u64) -> Self
pub const fn new(raw: u64) -> Self
Wrap a raw u64. Real handles come from the binding-side registry
(bindings.ts valueRegistry.intern(value)); this constructor is for
tests and FFI round-tripping.
Sourcepub const fn is_sentinel(self) -> bool
pub const fn is_sentinel(self) -> bool
True if this is the NO_HANDLE sentinel (handle id 0 is never
assigned to a real value). Equivalent to self == NO_HANDLE.
Trait Implementations§
Source§impl Ord for HandleId
impl Ord for HandleId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for HandleId
impl PartialOrd for HandleId
impl Copy for HandleId
impl Eq for HandleId
impl StructuralPartialEq for HandleId
Auto Trait Implementations§
impl Freeze for HandleId
impl RefUnwindSafe for HandleId
impl Send for HandleId
impl Sync for HandleId
impl Unpin for HandleId
impl UnsafeUnpin for HandleId
impl UnwindSafe for HandleId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.