pub struct MaterialHandle(pub u32);Expand description
Stable handle identifying a material instance. Lives here rather than in ursus-core so ursus-materials stays the single source of truth for material identity - ursus-core’s ECS just stores this as a component.
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for MaterialHandle
impl Clone for MaterialHandle
Source§fn clone(&self) -> MaterialHandle
fn clone(&self) -> MaterialHandle
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 MaterialHandle
Source§impl Debug for MaterialHandle
impl Debug for MaterialHandle
impl Eq for MaterialHandle
Source§impl Hash for MaterialHandle
impl Hash for MaterialHandle
Source§impl PartialEq for MaterialHandle
impl PartialEq for MaterialHandle
Source§fn eq(&self, other: &MaterialHandle) -> bool
fn eq(&self, other: &MaterialHandle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MaterialHandle
Auto Trait Implementations§
impl Freeze for MaterialHandle
impl RefUnwindSafe for MaterialHandle
impl Send for MaterialHandle
impl Sync for MaterialHandle
impl Unpin for MaterialHandle
impl UnsafeUnpin for MaterialHandle
impl UnwindSafe for MaterialHandle
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