pub struct DynamicTreeProxyId { /* private fields */ }Expand description
Stable handle for a proxy stored in a DynamicTree.
The generation component prevents accidentally reusing a stale handle after a proxy has been destroyed and another proxy has reused the same Box3D proxy index.
Implementations§
Source§impl DynamicTreeProxyId
impl DynamicTreeProxyId
Sourcepub const fn generation(self) -> u64
pub const fn generation(self) -> u64
Returns the generation paired with the native proxy index.
A mismatched generation means the handle refers to a proxy that has already been removed or whose index has been recycled by Box3D.
Trait Implementations§
Source§impl Clone for DynamicTreeProxyId
impl Clone for DynamicTreeProxyId
Source§fn clone(&self) -> DynamicTreeProxyId
fn clone(&self) -> DynamicTreeProxyId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DynamicTreeProxyId
Source§impl Debug for DynamicTreeProxyId
impl Debug for DynamicTreeProxyId
impl Eq for DynamicTreeProxyId
Source§impl Hash for DynamicTreeProxyId
impl Hash for DynamicTreeProxyId
Source§impl Ord for DynamicTreeProxyId
impl Ord for DynamicTreeProxyId
Source§fn cmp(&self, other: &DynamicTreeProxyId) -> Ordering
fn cmp(&self, other: &DynamicTreeProxyId) -> Ordering
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 PartialEq for DynamicTreeProxyId
impl PartialEq for DynamicTreeProxyId
Source§fn eq(&self, other: &DynamicTreeProxyId) -> bool
fn eq(&self, other: &DynamicTreeProxyId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DynamicTreeProxyId
impl PartialOrd for DynamicTreeProxyId
impl StructuralPartialEq for DynamicTreeProxyId
Auto Trait Implementations§
impl Freeze for DynamicTreeProxyId
impl RefUnwindSafe for DynamicTreeProxyId
impl Send for DynamicTreeProxyId
impl Sync for DynamicTreeProxyId
impl Unpin for DynamicTreeProxyId
impl UnsafeUnpin for DynamicTreeProxyId
impl UnwindSafe for DynamicTreeProxyId
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