Enum bevy_stat_query::StatOperation
source · pub enum StatOperation<S: StatValue> {
Add(S::Add),
Mul(S::Mul),
Or(S::Bit),
Not(S::Bit),
Min(S::Bounds),
Max(S::Bounds),
}Expand description
An single step unordered operation on a StatValue.
Variants§
Implementations§
Trait Implementations§
source§impl<S: Clone + StatValue> Clone for StatOperation<S>
impl<S: Clone + StatValue> Clone for StatOperation<S>
source§fn clone(&self) -> StatOperation<S>
fn clone(&self) -> StatOperation<S>
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, S: StatValue> Deserialize<'de> for StatOperation<S>where
S::Add: Deserialize<'de>,
S::Mul: Deserialize<'de>,
S::Bit: Deserialize<'de>,
S::Bounds: Deserialize<'de>,
impl<'de, S: StatValue> Deserialize<'de> for StatOperation<S>where
S::Add: Deserialize<'de>,
S::Mul: Deserialize<'de>,
S::Bit: Deserialize<'de>,
S::Bounds: Deserialize<'de>,
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<S: PartialEq + StatValue> PartialEq for StatOperation<S>
impl<S: PartialEq + StatValue> PartialEq for StatOperation<S>
source§fn eq(&self, other: &StatOperation<S>) -> bool
fn eq(&self, other: &StatOperation<S>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<S: PartialOrd + StatValue> PartialOrd for StatOperation<S>
impl<S: PartialOrd + StatValue> PartialOrd for StatOperation<S>
source§fn partial_cmp(&self, other: &StatOperation<S>) -> Option<Ordering>
fn partial_cmp(&self, other: &StatOperation<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<S: StatValue> Serialize for StatOperation<S>
impl<S: StatValue> Serialize for StatOperation<S>
source§impl<S> TypePath for StatOperation<S>
impl<S> TypePath for StatOperation<S>
source§fn type_path() -> &'static str
fn type_path() -> &'static str
Returns the fully qualified path of the underlying type. Read more
source§fn short_type_path() -> &'static str
fn short_type_path() -> &'static str
Returns a short, pretty-print enabled path to the type. Read more
source§fn type_ident() -> Option<&'static str>
fn type_ident() -> Option<&'static str>
source§fn crate_name() -> Option<&'static str>
fn crate_name() -> Option<&'static str>
impl<S: Copy + StatValue> Copy for StatOperation<S>
impl<S: Eq + StatValue> Eq for StatOperation<S>
impl<S: StatValue> StructuralPartialEq for StatOperation<S>
Auto Trait Implementations§
impl<S> Freeze for StatOperation<S>
impl<S> RefUnwindSafe for StatOperation<S>where
<S as StatValue>::Add: RefUnwindSafe,
<S as StatValue>::Mul: RefUnwindSafe,
<S as StatValue>::Bit: RefUnwindSafe,
<S as StatValue>::Bounds: RefUnwindSafe,
impl<S> Send for StatOperation<S>
impl<S> Sync for StatOperation<S>
impl<S> Unpin for StatOperation<S>
impl<S> UnwindSafe for StatOperation<S>where
<S as StatValue>::Add: UnwindSafe,
<S as StatValue>::Mul: UnwindSafe,
<S as StatValue>::Bit: UnwindSafe,
<S as StatValue>::Bounds: UnwindSafe,
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> DynamicTypePath for Twhere
T: TypePath,
impl<T> DynamicTypePath for Twhere
T: TypePath,
source§fn reflect_type_path(&self) -> &str
fn reflect_type_path(&self) -> &str
See
TypePath::type_path.source§fn reflect_short_type_path(&self) -> &str
fn reflect_short_type_path(&self) -> &str
source§fn reflect_type_ident(&self) -> Option<&str>
fn reflect_type_ident(&self) -> Option<&str>
See
TypePath::type_ident.source§fn reflect_crate_name(&self) -> Option<&str>
fn reflect_crate_name(&self) -> Option<&str>
See
TypePath::crate_name.source§fn reflect_module_path(&self) -> Option<&str>
fn reflect_module_path(&self) -> Option<&str>
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<T, U> IntoTypeTagged<T> for U
impl<T, U> IntoTypeTagged<T> for U
source§fn name() -> impl AsRef<str>
fn name() -> impl AsRef<str>
Type name, must be unique per type and
must match the output on the corresponding
BevyTypeTagged
when type erased.source§fn into_type_tagged(self) -> T
fn into_type_tagged(self) -> T
Convert to a
BevyTypeTagged type.