pub enum FireworkShape {
SmallBall,
LargeBall,
Star,
Creeper,
Burst,
}Expand description
One of the game’s five explosion shapes [cited — Data component format/fireworks], spelled as the component spells it.
Variants§
SmallBall
A small ball — the plain firework star.
LargeBall
A large ball.
Star
A star-shaped burst (a gold-nugget star).
Creeper
A creeper-face burst (a creeper-head star).
Burst
A burst (a feather star).
Implementations§
Source§impl FireworkShape
impl FireworkShape
Trait Implementations§
Source§impl Clone for FireworkShape
impl Clone for FireworkShape
impl Copy for FireworkShape
Source§impl Debug for FireworkShape
impl Debug for FireworkShape
Source§impl<'de> Deserialize<'de> for FireworkShape
impl<'de> Deserialize<'de> for FireworkShape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FireworkShape
Source§impl JsonSchema for FireworkShape
impl JsonSchema for FireworkShape
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for FireworkShape
impl Ord for FireworkShape
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FireworkShape
impl PartialEq for FireworkShape
Source§impl PartialOrd for FireworkShape
impl PartialOrd for FireworkShape
Source§impl Serialize for FireworkShape
impl Serialize 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