Enum FireworkShape
#[non_exhaustive]pub enum FireworkShape {
SmallBall,
LargeBall,
Star,
Creeper,
Burst,
}Expand description
The explosion shape selected by a firework recipe.
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.
SmallBall
Small spherical explosion.
LargeBall
Large spherical explosion.
Star
Star-shaped explosion.
Creeper
Creeper-face explosion.
Burst
Burst explosion.
Implementations§
§impl FireworkShape
impl FireworkShape
pub fn from_name(name: &str) -> FireworkShape
pub fn from_name(name: &str) -> FireworkShape
Decode a component shape name; vanilla uses the small ball for unknown names.
Trait Implementations§
§impl Clone for FireworkShape
impl Clone for FireworkShape
§fn clone(&self) -> FireworkShape
fn clone(&self) -> FireworkShape
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 FireworkShape
§impl Debug for FireworkShape
impl Debug for FireworkShape
§impl Default for FireworkShape
impl Default for FireworkShape
§fn default() -> FireworkShape
fn default() -> FireworkShape
Returns the “default value” for a type. Read more
impl Eq for FireworkShape
§impl PartialEq for FireworkShape
impl PartialEq for FireworkShape
impl StructuralPartialEq for FireworkShape
Auto Trait Implementations§
impl Freeze for FireworkShape
impl RefUnwindSafe for FireworkShape
impl Send for FireworkShape
impl Sync for FireworkShape
impl Unpin for FireworkShape
impl UnsafeUnpin for FireworkShape
impl UnwindSafe for FireworkShape
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