Enum BlockInteraction
#[non_exhaustive]pub enum BlockInteraction {
Keep,
Destroy,
DestroyWithDecay,
TriggerBlock,
}Expand description
What an explosion does to blocks (Explosion.BlockInteraction).
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.
Keep
Blocks are left alone.
Destroy
Blocks are destroyed and drop everything.
DestroyWithDecay
Blocks are destroyed and their drops may decay.
TriggerBlock
A wind burst: it pushes, and triggers doors, buttons, bells and the like.
Trait Implementations§
§impl Clone for BlockInteraction
impl Clone for BlockInteraction
§fn clone(&self) -> BlockInteraction
fn clone(&self) -> BlockInteraction
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 BlockInteraction
§impl Debug for BlockInteraction
impl Debug for BlockInteraction
impl Eq for BlockInteraction
§impl PartialEq for BlockInteraction
impl PartialEq for BlockInteraction
impl StructuralPartialEq for BlockInteraction
Auto Trait Implementations§
impl Freeze for BlockInteraction
impl RefUnwindSafe for BlockInteraction
impl Send for BlockInteraction
impl Sync for BlockInteraction
impl Unpin for BlockInteraction
impl UnsafeUnpin for BlockInteraction
impl UnwindSafe for BlockInteraction
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