pub struct SkillDefinitions<K, E, S: Hash + Eq, I> {
pub defs: HashMap<S, SkillDefinition<K, E, S, I>>,
}
Expand description
Holds the definitions of all known skills.
Fields§
§defs: HashMap<S, SkillDefinition<K, E, S, I>>
The definitions.
Implementations§
Source§impl<K, E, S: Hash + Eq, I> SkillDefinitions<K, E, S, I>
impl<K, E, S: Hash + Eq, I> SkillDefinitions<K, E, S, I>
Sourcepub fn new(defs: HashMap<S, SkillDefinition<K, E, S, I>>) -> Self
pub fn new(defs: HashMap<S, SkillDefinition<K, E, S, I>>) -> Self
Constructs a new SkillDefinitions
.
Trait Implementations§
Source§impl<K: Clone, E: Clone, S: Clone + Hash + Eq, I: Clone> Clone for SkillDefinitions<K, E, S, I>
impl<K: Clone, E: Clone, S: Clone + Hash + Eq, I: Clone> Clone for SkillDefinitions<K, E, S, I>
Source§fn clone(&self) -> SkillDefinitions<K, E, S, I>
fn clone(&self) -> SkillDefinitions<K, E, S, I>
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<K: Debug, E: Debug, S: Debug + Hash + Eq, I: Debug> Debug for SkillDefinitions<K, E, S, I>
impl<K: Debug, E: Debug, S: Debug + Hash + Eq, I: Debug> Debug for SkillDefinitions<K, E, S, I>
Source§impl<'de, K, E, S, I> Deserialize<'de> for SkillDefinitions<K, E, S, I>where
K: Deserialize<'de>,
E: Deserialize<'de>,
S: Deserialize<'de> + Hash + Eq,
I: Deserialize<'de>,
impl<'de, K, E, S, I> Deserialize<'de> for SkillDefinitions<K, E, S, I>where
K: Deserialize<'de>,
E: Deserialize<'de>,
S: Deserialize<'de> + Hash + Eq,
I: 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<K, E, S: Hash + Eq + Clone, I> From<Vec<SkillDefinition<K, E, S, I>>> for SkillDefinitions<K, E, S, I>
impl<K, E, S: Hash + Eq + Clone, I> From<Vec<SkillDefinition<K, E, S, I>>> for SkillDefinitions<K, E, S, I>
Source§fn from(t: Vec<SkillDefinition<K, E, S, I>>) -> Self
fn from(t: Vec<SkillDefinition<K, E, S, I>>) -> Self
Converts to this type from the input type.
Source§impl<K, E, S, I> Serialize for SkillDefinitions<K, E, S, I>
impl<K, E, S, I> Serialize for SkillDefinitions<K, E, S, I>
Auto Trait Implementations§
impl<K, E, S, I> Freeze for SkillDefinitions<K, E, S, I>
impl<K, E, S, I> RefUnwindSafe for SkillDefinitions<K, E, S, I>
impl<K, E, S, I> Send for SkillDefinitions<K, E, S, I>
impl<K, E, S, I> Sync for SkillDefinitions<K, E, S, I>
impl<K, E, S, I> Unpin for SkillDefinitions<K, E, S, I>
impl<K, E, S, I> UnwindSafe for SkillDefinitions<K, E, S, I>
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