pub struct SpaceInstanceId(/* private fields */);Expand description
Unique per-instance identifier for a Space object.
Allocated from a monotonic atomic counter via SpaceInstanceId::next.
Two distinct space instances always have different IDs, even if they
have identical topology. Used by observation plan caching to avoid
ABA reuse when a space is dropped and a new one is allocated at the
same address.
Cloning a space preserves its instance ID, which is correct because immutable spaces with the same ID have the same topology.
Implementations§
Trait Implementations§
Source§impl Clone for SpaceInstanceId
impl Clone for SpaceInstanceId
Source§fn clone(&self) -> SpaceInstanceId
fn clone(&self) -> SpaceInstanceId
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 SpaceInstanceId
impl Debug for SpaceInstanceId
Source§impl Display for SpaceInstanceId
impl Display for SpaceInstanceId
Source§impl Hash for SpaceInstanceId
impl Hash for SpaceInstanceId
Source§impl Ord for SpaceInstanceId
impl Ord for SpaceInstanceId
Source§fn cmp(&self, other: &SpaceInstanceId) -> Ordering
fn cmp(&self, other: &SpaceInstanceId) -> 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 SpaceInstanceId
impl PartialEq for SpaceInstanceId
Source§impl PartialOrd for SpaceInstanceId
impl PartialOrd for SpaceInstanceId
impl Copy for SpaceInstanceId
impl Eq for SpaceInstanceId
impl StructuralPartialEq for SpaceInstanceId
Auto Trait Implementations§
impl Freeze for SpaceInstanceId
impl RefUnwindSafe for SpaceInstanceId
impl Send for SpaceInstanceId
impl Sync for SpaceInstanceId
impl Unpin for SpaceInstanceId
impl UnsafeUnpin for SpaceInstanceId
impl UnwindSafe for SpaceInstanceId
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