pub struct SkillSet<S: Hash + Eq> {
pub skills: HashMap<S, SkillInstance<S>>,
}Expand description
The set of skill that can be used by an entity.
Fields§
§skills: HashMap<S, SkillInstance<S>>The skills mapped by their key.
Implementations§
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for SkillSet<S>
impl<'de, S> Deserialize<'de> for SkillSet<S>
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
Auto Trait Implementations§
impl<S> Freeze for SkillSet<S>
impl<S> RefUnwindSafe for SkillSet<S>where
S: RefUnwindSafe,
impl<S> Send for SkillSet<S>where
S: Send,
impl<S> Sync for SkillSet<S>where
S: Sync,
impl<S> Unpin for SkillSet<S>where
S: Unpin,
impl<S> UnwindSafe for SkillSet<S>where
S: UnwindSafe,
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