pub struct DamageEffectFlags {
pub do_not_scale_damage_by_distance: bool,
}Fields§
§do_not_scale_damage_by_distance: boolImplementations§
Trait Implementations§
Source§impl Clone for DamageEffectFlags
impl Clone for DamageEffectFlags
Source§fn clone(&self) -> DamageEffectFlags
fn clone(&self) -> DamageEffectFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DamageEffectFlags
impl Default for DamageEffectFlags
Source§fn default() -> DamageEffectFlags
fn default() -> DamageEffectFlags
Returns the “default value” for a type. Read more
Source§impl PartialEq for DamageEffectFlags
impl PartialEq for DamageEffectFlags
Source§impl TagSerialize for DamageEffectFlags
impl TagSerialize for DamageEffectFlags
Source§fn into_tag(
&self,
data: &mut Vec<u8>,
at: usize,
struct_end: usize,
) -> ErrorMessageResult<()>
fn into_tag( &self, data: &mut Vec<u8>, at: usize, struct_end: usize, ) -> ErrorMessageResult<()>
Serialize the data into tag format, returning an error on failure (except for out-of-bounds and allocation errors which will panic).
Source§fn from_tag(
data: &[u8],
at: usize,
struct_end: usize,
cursor: &mut usize,
) -> ErrorMessageResult<DamageEffectFlags>
fn from_tag( data: &[u8], at: usize, struct_end: usize, cursor: &mut usize, ) -> ErrorMessageResult<DamageEffectFlags>
Deserialize the data from tag format, returning an error on failure (except for allocation errors which will panic).
Source§fn into_tag_cached(
&self,
data: &mut [u8],
at: usize,
struct_end: usize,
) -> ErrorMessageResult<()>where
Self: Sized,
fn into_tag_cached(
&self,
data: &mut [u8],
at: usize,
struct_end: usize,
) -> ErrorMessageResult<()>where
Self: Sized,
Serialize the data into tag format in little endian, returning an error on failure (except for out-of-bounds and allocation errors which will panic).
Source§fn from_tag_cached(
data: &[u8],
at: usize,
struct_end: usize,
) -> ErrorMessageResult<Self>where
Self: Sized,
fn from_tag_cached(
data: &[u8],
at: usize,
struct_end: usize,
) -> ErrorMessageResult<Self>where
Self: Sized,
Deserialize the data from tag format from little endian, returning an error on failure (except for allocation errors which will panic).
impl Copy for DamageEffectFlags
impl StructuralPartialEq for DamageEffectFlags
Auto Trait Implementations§
impl Freeze for DamageEffectFlags
impl RefUnwindSafe for DamageEffectFlags
impl Send for DamageEffectFlags
impl Sync for DamageEffectFlags
impl Unpin for DamageEffectFlags
impl UnwindSafe for DamageEffectFlags
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