pub struct CommandManifest<C: Category, T: Tag, S: Scope> { /* private fields */ }Implementations§
Source§impl<C: Category, T: Tag, S: Scope> CommandManifest<C, T, S>
impl<C: Category, T: Tag, S: Scope> CommandManifest<C, T, S>
pub fn new() -> Self
pub fn add(&mut self, def: CommandDef<C, T, S>) -> &mut Self
pub fn get(&self, name: &str) -> Option<&CommandDef<C, T, S>>
pub fn all_sorted(&self) -> Vec<&CommandDef<C, T, S>>
pub fn by_category(&self, cat: C) -> Vec<&CommandDef<C, T, S>>
pub fn by_tag(&self, tag: T) -> Vec<&CommandDef<C, T, S>>
pub fn by_scope(&self, scope: S) -> Vec<&CommandDef<C, T, S>>
pub fn categories_in_order(&self) -> Vec<C>
Trait Implementations§
Auto Trait Implementations§
impl<C, T, S> Freeze for CommandManifest<C, T, S>
impl<C, T, S> RefUnwindSafe for CommandManifest<C, T, S>
impl<C, T, S> Send for CommandManifest<C, T, S>
impl<C, T, S> Sync for CommandManifest<C, T, S>
impl<C, T, S> Unpin for CommandManifest<C, T, S>
impl<C, T, S> UnsafeUnpin for CommandManifest<C, T, S>
impl<C, T, S> UnwindSafe for CommandManifest<C, T, S>
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