pub struct MeshId { /* private fields */ }Expand description
A handle to a mesh in a Scene.
Ids are generational: once a mesh is removed its id never matches again,
even when the slot is reused. Ids order by (index, generation).
Implementations§
Source§impl MeshId
impl MeshId
Sourcepub fn index(self) -> u32
pub fn index(self) -> u32
The slot index, for passing the id across an FFI boundary together
with MeshId::generation. Turn the pair back into an id with
Scene::mesh_id.
Sourcepub fn generation(self) -> u32
pub fn generation(self) -> u32
The slot generation; see MeshId::index.
Trait Implementations§
impl Copy for MeshId
impl Eq for MeshId
Source§impl Ord for MeshId
impl Ord for MeshId
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 MeshId
impl PartialOrd for MeshId
impl StructuralPartialEq for MeshId
Auto Trait Implementations§
impl Freeze for MeshId
impl RefUnwindSafe for MeshId
impl Send for MeshId
impl Sync for MeshId
impl Unpin for MeshId
impl UnsafeUnpin for MeshId
impl UnwindSafe for MeshId
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