Struct game_features::ItemDefinitions [−][src]
A simple repository mapping the key K to the corresponding ItemDefinition
.
Fields
defs: HashMap<K, ItemDefinition<K, S, D>>
The definitions.
Implementations
impl<K: Hash + Eq, S, D: Default> ItemDefinitions<K, S, D>
[src]
pub fn new(defs: HashMap<K, ItemDefinition<K, S, D>>) -> Self
[src]
Constructs a new ItemDefinitions
.
Trait Implementations
impl<K: Clone + Hash + Eq, S: Clone, D: Clone + Default> Clone for ItemDefinitions<K, S, D>
[src]
fn clone(&self) -> ItemDefinitions<K, S, D>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K: Hash + Eq, S, D: Default> Default for ItemDefinitions<K, S, D>
[src]
impl<'de, K: Hash + Eq, S, D: Default> Deserialize<'de> for ItemDefinitions<K, S, D> where
K: Deserialize<'de>,
S: Deserialize<'de>,
D: Deserialize<'de>,
[src]
K: Deserialize<'de>,
S: Deserialize<'de>,
D: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<K: Hash + Eq + Clone, S, D: Default> From<Vec<ItemDefinition<K, S, D>, Global>> for ItemDefinitions<K, S, D>
[src]
fn from(t: Vec<ItemDefinition<K, S, D>>) -> Self
[src]
impl<K: Hash + Eq, S, D: Default> Serialize for ItemDefinitions<K, S, D> where
K: Serialize,
S: Serialize,
D: Serialize,
[src]
K: Serialize,
S: Serialize,
D: Serialize,
Auto Trait Implementations
impl<K, S, D> RefUnwindSafe for ItemDefinitions<K, S, D> where
D: RefUnwindSafe,
K: RefUnwindSafe,
S: RefUnwindSafe,
D: RefUnwindSafe,
K: RefUnwindSafe,
S: RefUnwindSafe,
impl<K, S, D> Send for ItemDefinitions<K, S, D> where
D: Send,
K: Send,
S: Send,
D: Send,
K: Send,
S: Send,
impl<K, S, D> Sync for ItemDefinitions<K, S, D> where
D: Sync,
K: Sync,
S: Sync,
D: Sync,
K: Sync,
S: Sync,
impl<K, S, D> Unpin for ItemDefinitions<K, S, D> where
D: Unpin,
K: Unpin,
S: Unpin,
D: Unpin,
K: Unpin,
S: Unpin,
impl<K, S, D> UnwindSafe for ItemDefinitions<K, S, D> where
D: UnwindSafe,
K: UnwindSafe,
S: UnwindSafe,
D: UnwindSafe,
K: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,