pub enum ComponentDataDiscriminant {
Empty,
Bool,
I32,
Float,
Tool,
Equippable,
Enchantments,
TextComponent,
Todo,
Other,
}Expand description
Discriminant for ComponentData variants.
Used for runtime type validation to ensure plugins don’t set wrong types on vanilla components.
Variants§
Trait Implementations§
Source§impl Clone for ComponentDataDiscriminant
impl Clone for ComponentDataDiscriminant
Source§fn clone(&self) -> ComponentDataDiscriminant
fn clone(&self) -> ComponentDataDiscriminant
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 moreimpl Copy for ComponentDataDiscriminant
Source§impl Debug for ComponentDataDiscriminant
impl Debug for ComponentDataDiscriminant
impl Eq for ComponentDataDiscriminant
Source§impl PartialEq for ComponentDataDiscriminant
impl PartialEq for ComponentDataDiscriminant
Source§fn eq(&self, other: &ComponentDataDiscriminant) -> bool
fn eq(&self, other: &ComponentDataDiscriminant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentDataDiscriminant
Auto Trait Implementations§
impl Freeze for ComponentDataDiscriminant
impl RefUnwindSafe for ComponentDataDiscriminant
impl Send for ComponentDataDiscriminant
impl Sync for ComponentDataDiscriminant
impl Unpin for ComponentDataDiscriminant
impl UnsafeUnpin for ComponentDataDiscriminant
impl UnwindSafe for ComponentDataDiscriminant
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.