pub struct EngineerCraftEventValueChange {
pub value: f32,
pub original_value: f32,
pub less_is_good: u8,
}
Expand description
A change in a numeric value.
Fields§
§value: f32
The new value of the target modifier.
original_value: f32
The original value of target modifier.
less_is_good: u8
Whether decreasing the value yields positive results.
Trait Implementations§
Source§impl Clone for EngineerCraftEventValueChange
impl Clone for EngineerCraftEventValueChange
Source§fn clone(&self) -> EngineerCraftEventValueChange
fn clone(&self) -> EngineerCraftEventValueChange
Returns a copy 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<'de> Deserialize<'de> for EngineerCraftEventValueChange
impl<'de> Deserialize<'de> for EngineerCraftEventValueChange
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
Source§impl PartialEq for EngineerCraftEventValueChange
impl PartialEq for EngineerCraftEventValueChange
Source§fn eq(&self, other: &EngineerCraftEventValueChange) -> bool
fn eq(&self, other: &EngineerCraftEventValueChange) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for EngineerCraftEventValueChange
Auto Trait Implementations§
impl Freeze for EngineerCraftEventValueChange
impl RefUnwindSafe for EngineerCraftEventValueChange
impl Send for EngineerCraftEventValueChange
impl Sync for EngineerCraftEventValueChange
impl Unpin for EngineerCraftEventValueChange
impl UnwindSafe for EngineerCraftEventValueChange
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