Enum golden_apple::enums::StatisticID
source · [−]#[repr(i32)]
pub enum StatisticID {
Block(Block),
Item(Item),
Entity(EntityType),
Custom(CustomStatistic),
}
Expand description
Represents what specific statistic id is being referenced.
Variants
Block(Block)
This statistic references the block registry ids.
Item(Item)
This statistic references the item registry ids.
Entity(EntityType)
This statistic references the entity registry ids.
Custom(CustomStatistic)
This statistic references the custom statistic registry ids.
Trait Implementations
sourceimpl Clone for StatisticID
impl Clone for StatisticID
sourcefn clone(&self) -> StatisticID
fn clone(&self) -> StatisticID
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StatisticID
impl Debug for StatisticID
sourceimpl PartialEq<StatisticID> for StatisticID
impl PartialEq<StatisticID> for StatisticID
sourcefn eq(&self, other: &StatisticID) -> bool
fn eq(&self, other: &StatisticID) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for StatisticID
impl Eq for StatisticID
impl StructuralEq for StatisticID
impl StructuralPartialEq for StatisticID
Auto Trait Implementations
impl RefUnwindSafe for StatisticID
impl Send for StatisticID
impl Sync for StatisticID
impl Unpin for StatisticID
impl UnwindSafe for StatisticID
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more