#[repr(C)]pub enum ThreadSyncReference {
ObjectRef(ObjID, usize),
Virtual(*const AtomicU64),
Virtual32(*const AtomicU32),
}
Expand description
A reference to a piece of data. May either be a non-realized persistent reference or a virtual address.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ThreadSyncReference
impl Clone for ThreadSyncReference
source§fn clone(&self) -> ThreadSyncReference
fn clone(&self) -> ThreadSyncReference
Returns a copy 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 ThreadSyncReference
impl Debug for ThreadSyncReference
source§impl Hash for ThreadSyncReference
impl Hash for ThreadSyncReference
source§impl Ord for ThreadSyncReference
impl Ord for ThreadSyncReference
source§fn cmp(&self, other: &ThreadSyncReference) -> Ordering
fn cmp(&self, other: &ThreadSyncReference) -> Ordering
1.21.0 · 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 PartialEq for ThreadSyncReference
impl PartialEq for ThreadSyncReference
source§impl PartialOrd for ThreadSyncReference
impl PartialOrd for ThreadSyncReference
impl Copy for ThreadSyncReference
impl Eq for ThreadSyncReference
impl Send for ThreadSyncReference
impl StructuralPartialEq for ThreadSyncReference
Auto Trait Implementations§
impl Freeze for ThreadSyncReference
impl !ObjSafe for ThreadSyncReference
impl RefUnwindSafe for ThreadSyncReference
impl !Sync for ThreadSyncReference
impl Unpin for ThreadSyncReference
impl UnwindSafe for ThreadSyncReference
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.