pub struct ExplosionDescriptor {
pub entity_type: EntityType,
pub explosive_material: ExplosiveMaterialCategories,
pub explosive_force: f32,
}Expand description
6.2.19.3 Explosion Descriptor record
Fields§
§entity_type: EntityType§explosive_material: ExplosiveMaterialCategories§explosive_force: f32Implementations§
Source§impl ExplosionDescriptor
impl ExplosionDescriptor
pub fn with_entity_type(self, entity_type: EntityType) -> Self
pub fn with_explosive_material( self, explosive_material: ExplosiveMaterialCategories, ) -> Self
pub fn with_explosive_force(self, explosive_force: f32) -> Self
Trait Implementations§
Source§impl Clone for ExplosionDescriptor
impl Clone for ExplosionDescriptor
Source§fn clone(&self) -> ExplosionDescriptor
fn clone(&self) -> ExplosionDescriptor
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 moreSource§impl Debug for ExplosionDescriptor
impl Debug for ExplosionDescriptor
Source§impl Default for ExplosionDescriptor
impl Default for ExplosionDescriptor
Source§fn default() -> ExplosionDescriptor
fn default() -> ExplosionDescriptor
Returns the “default value” for a type. Read more
Source§impl From<ExplosionDescriptor> for DetonationDescriptor
impl From<ExplosionDescriptor> for DetonationDescriptor
Source§fn from(value: ExplosionDescriptor) -> Self
fn from(value: ExplosionDescriptor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExplosionDescriptor
impl PartialEq for ExplosionDescriptor
Source§fn eq(&self, other: &ExplosionDescriptor) -> bool
fn eq(&self, other: &ExplosionDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExplosionDescriptor
Auto Trait Implementations§
impl Freeze for ExplosionDescriptor
impl RefUnwindSafe for ExplosionDescriptor
impl Send for ExplosionDescriptor
impl Sync for ExplosionDescriptor
impl Unpin for ExplosionDescriptor
impl UnsafeUnpin for ExplosionDescriptor
impl UnwindSafe for ExplosionDescriptor
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