pub struct PluginSkills {
pub skills: HashMap<String, PluginSkill>,
}Expand description
Loaded skills grouped by plugin
Fields§
§skills: HashMap<String, PluginSkill>Implementations§
Source§impl PluginSkills
impl PluginSkills
Sourcepub fn insert(&mut self, skill: PluginSkill)
pub fn insert(&mut self, skill: PluginSkill)
Add a skill to the collection
Sourcepub fn get(&self, name: &str) -> Option<&PluginSkill>
pub fn get(&self, name: &str) -> Option<&PluginSkill>
Get a skill by full name
Sourcepub fn to_loaded_skills(&self) -> Vec<LoadedSkill>
pub fn to_loaded_skills(&self) -> Vec<LoadedSkill>
Convert to LoadedSkill for integration with the skill system
Trait Implementations§
Source§impl Clone for PluginSkills
impl Clone for PluginSkills
Source§fn clone(&self) -> PluginSkills
fn clone(&self) -> PluginSkills
Returns a duplicate 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 Debug for PluginSkills
impl Debug for PluginSkills
Source§impl Default for PluginSkills
impl Default for PluginSkills
Source§fn default() -> PluginSkills
fn default() -> PluginSkills
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PluginSkills
impl RefUnwindSafe for PluginSkills
impl Send for PluginSkills
impl Sync for PluginSkills
impl Unpin for PluginSkills
impl UnsafeUnpin for PluginSkills
impl UnwindSafe for PluginSkills
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