[][src]Struct rcore::Commands

pub struct Commands { /* fields omitted */ }

Methods

impl Commands[src]

pub fn add_command(
    &mut self,
    command_name: &'static str,
    functionality: MRc<dyn Cmd>
) -> bool
[src]

pub fn find(&self, command: &str) -> Option<MRc<dyn Cmd>>[src]

pub fn suggest(&self, command: &str, tolerance: u64) -> Vec<&String>[src]

pub fn prefix<'a>(&'a self, command: &'a str) -> Vec<&&str>[src]

Trait Implementations

impl Default for Commands[src]

Auto Trait Implementations

impl !RefUnwindSafe for Commands

impl !Send for Commands

impl !Sync for Commands

impl Unpin for Commands

impl !UnwindSafe for Commands

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.