Struct FireworkShapeIngredient
#[non_exhaustive]pub struct FireworkShapeIngredient {
pub shape: FireworkShape,
pub ingredient: Ingredient,
}Expand description
An ingredient that chooses a firework star’s explosion shape.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.shape: FireworkShapeShape selected by this ingredient.
ingredient: IngredientItems which select the shape.
Implementations§
§impl FireworkShapeIngredient
impl FireworkShapeIngredient
pub fn new(
shape: FireworkShape,
ingredient: Ingredient,
) -> FireworkShapeIngredient
pub fn new( shape: FireworkShape, ingredient: Ingredient, ) -> FireworkShapeIngredient
A parsed shape and its ingredient.
Trait Implementations§
§impl Clone for FireworkShapeIngredient
impl Clone for FireworkShapeIngredient
§fn clone(&self) -> FireworkShapeIngredient
fn clone(&self) -> FireworkShapeIngredient
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 more§impl Debug for FireworkShapeIngredient
impl Debug for FireworkShapeIngredient
Auto Trait Implementations§
impl Freeze for FireworkShapeIngredient
impl RefUnwindSafe for FireworkShapeIngredient
impl Send for FireworkShapeIngredient
impl Sync for FireworkShapeIngredient
impl Unpin for FireworkShapeIngredient
impl UnsafeUnpin for FireworkShapeIngredient
impl UnwindSafe for FireworkShapeIngredient
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