pub enum FireworkState {
Waiting,
Alive,
Gone,
}
Expand description
Struct representing state of a Firework
State goes from Waiting
-> Alive
-> Gone
§Notes
Firework
turns toAlive
when it is spawnedFirework
turns toGone
when all of itsParticles
areDead
Variants§
Trait Implementations§
Source§impl Debug for FireworkState
impl Debug for FireworkState
Source§impl Default for FireworkState
impl Default for FireworkState
Source§fn default() -> FireworkState
fn default() -> FireworkState
Returns the “default value” for a type. Read more
Source§impl PartialEq for FireworkState
impl PartialEq for FireworkState
impl StructuralPartialEq for FireworkState
Auto Trait Implementations§
impl Freeze for FireworkState
impl RefUnwindSafe for FireworkState
impl Send for FireworkState
impl Sync for FireworkState
impl Unpin for FireworkState
impl UnwindSafe for FireworkState
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