pub enum ItemTag {
Material(Material),
MaterialKind(MaterialKind),
Cultist,
Gnarling,
Potion,
Food,
BaseMaterial,
CraftingTool,
Utility,
Bag,
SalvageInto(Material, u32),
}
Variants§
Material(Material)
Used to indicate that an item is composed of this material
MaterialKind(MaterialKind)
Used to indicate that an item is composed of this material kind
Cultist
Gnarling
Potion
Food
BaseMaterial
CraftingTool
Utility
Bag
SalvageInto(Material, u32)
Trait Implementations§
source§impl<'de> Deserialize<'de> for ItemTag
impl<'de> Deserialize<'de> for ItemTag
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 ItemTag
impl PartialEq for ItemTag
source§impl TagExampleInfo for ItemTag
impl TagExampleInfo for ItemTag
impl Copy for ItemTag
impl Eq for ItemTag
impl StructuralEq for ItemTag
impl StructuralPartialEq for ItemTag
Auto Trait Implementations§
impl RefUnwindSafe for ItemTag
impl Send for ItemTag
impl Sync for ItemTag
impl Unpin for ItemTag
impl UnwindSafe for ItemTag
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
§impl<C, M> ConvertSaveload<M> for C
impl<C, M> ConvertSaveload<M> for C
§type Error = Infallible
type Error = Infallible
Error may occur during serialization or deserialization of component
§fn convert_into<F>(
&self,
_: F
) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
fn convert_into<F>( &self, _: F ) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
Convert this data type into serializable form (
Data
) using
entity to marker mapping function§fn convert_from<F>(
data: <C as ConvertSaveload<M>>::Data,
_: F
) -> Result<C, <C as ConvertSaveload<M>>::Error>
fn convert_from<F>( data: <C as ConvertSaveload<M>>::Data, _: F ) -> Result<C, <C as ConvertSaveload<M>>::Error>
Convert this data from a deserializable form (
Data
) using
entity to marker mapping function§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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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.