pub struct GeometryHandle(/* private fields */);Expand description
Handle to a Geometry.
Implementations§
Source§impl GeometryHandle
impl GeometryHandle
pub fn is_null(self) -> bool
Sourcepub fn raw_parts(self) -> (u32, u16)
pub fn raw_parts(self) -> (u32, u16)
Returns the raw (slot, generation) representation used by the owning pool.
This is intended for trusted serialization code that needs to persist handle identity without introducing a separate forward-map layer.
Sourcepub unsafe fn from_raw_parts_unchecked(index: u32, generation: u16) -> Self
pub unsafe fn from_raw_parts_unchecked(index: u32, generation: u16) -> Self
Reconstructs a handle from trusted raw (slot, generation) parts.
Normal callers should not create handles directly; obtain them from the owning resource pool instead.
§Safety
index and generation must come from a compatible serialized handle identity for
the same resource pool domain. Constructing arbitrary values is not memory-unsafe,
but it can create stale or invalid handles that fail pool validity checks or point
at the wrong logical resource.
Trait Implementations§
Source§impl Clone for GeometryHandle
impl Clone for GeometryHandle
Source§fn clone(&self) -> GeometryHandle
fn clone(&self) -> GeometryHandle
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 GeometryHandle
impl Debug for GeometryHandle
Source§impl Default for GeometryHandle
impl Default for GeometryHandle
Source§fn default() -> GeometryHandle
fn default() -> GeometryHandle
Returns the “default value” for a type. Read more
Source§impl Display for GeometryHandle
impl Display for GeometryHandle
Source§impl Hash for GeometryHandle
impl Hash for GeometryHandle
Source§impl Ord for GeometryHandle
impl Ord for GeometryHandle
Source§fn cmp(&self, other: &GeometryHandle) -> Ordering
fn cmp(&self, other: &GeometryHandle) -> 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 GeometryHandle
impl PartialEq for GeometryHandle
Source§impl PartialOrd for GeometryHandle
impl PartialOrd for GeometryHandle
impl Copy for GeometryHandle
impl Eq for GeometryHandle
impl StructuralPartialEq for GeometryHandle
Auto Trait Implementations§
impl Freeze for GeometryHandle
impl RefUnwindSafe for GeometryHandle
impl Send for GeometryHandle
impl Sync for GeometryHandle
impl Unpin for GeometryHandle
impl UnsafeUnpin for GeometryHandle
impl UnwindSafe for GeometryHandle
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