pub struct ShapeId(pub u16);Expand description
An ID referencing a registered VoxelShape in the ShapeRegistry.
Use this to refer to shapes in a compact way. The actual shape data can be retrieved from the ShapeRegistry using this ID.
Tuple Fields§
§0: u16Implementations§
Trait Implementations§
impl Copy for ShapeId
impl Eq for ShapeId
impl StructuralPartialEq for ShapeId
Auto Trait Implementations§
impl Freeze for ShapeId
impl RefUnwindSafe for ShapeId
impl Send for ShapeId
impl Sync for ShapeId
impl Unpin for ShapeId
impl UnsafeUnpin for ShapeId
impl UnwindSafe for ShapeId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.