pub enum CommandIndex {
Simple(usize),
Alias(String),
}Variants§
Implementations§
Source§impl CommandIndex
impl CommandIndex
pub fn retrieve<'a>( &self, commands: &'a [CommandConfig], ) -> Option<&'a CommandConfig>
Trait Implementations§
Source§impl Clone for CommandIndex
impl Clone for CommandIndex
Source§fn clone(&self) -> CommandIndex
fn clone(&self) -> CommandIndex
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 CommandIndex
impl Debug for CommandIndex
Source§impl<'de> Deserialize<'de> for CommandIndex
impl<'de> Deserialize<'de> for CommandIndex
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 From<&str> for CommandIndex
impl From<&str> for CommandIndex
Source§impl From<usize> for CommandIndex
impl From<usize> for CommandIndex
Auto Trait Implementations§
impl Freeze for CommandIndex
impl RefUnwindSafe for CommandIndex
impl Send for CommandIndex
impl Sync for CommandIndex
impl Unpin for CommandIndex
impl UnwindSafe for CommandIndex
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