#[non_exhaustive]pub enum GizmoRole {
Bounds,
Solid,
Trigger,
Path,
Bone,
Note,
}Expand description
What a gizmo shows, which picks its colour: the debug skin’s
(color), never the game’s. More roles may come with
later channels.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bounds
Where something is: a cell, a map’s edge, a box round a sprite.
Solid
What blocks movement.
Trigger
What reacts when something enters it.
Path
A way something goes.
Bone
A bone of a skeleton.
Note
Anything else worth pointing out: a cursor, an index, a reading.
Implementations§
Trait Implementations§
impl Copy for GizmoRole
impl Eq for GizmoRole
Source§impl Ord for GizmoRole
impl Ord for GizmoRole
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 GizmoRole
impl PartialOrd for GizmoRole
impl StructuralPartialEq for GizmoRole
Auto Trait Implementations§
impl Freeze for GizmoRole
impl RefUnwindSafe for GizmoRole
impl Send for GizmoRole
impl Sync for GizmoRole
impl Unpin for GizmoRole
impl UnsafeUnpin for GizmoRole
impl UnwindSafe for GizmoRole
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