pub struct CommandAnalyzer { /* private fields */ }Expand description
Analyzes commands and provides educational context
Implementations§
Source§impl CommandAnalyzer
impl CommandAnalyzer
pub fn new() -> Self
Sourcepub fn get_command_info(&self, cmd: &str) -> Option<&CommandInfo>
pub fn get_command_info(&self, cmd: &str) -> Option<&CommandInfo>
Get command information if available
Sourcepub fn suggest_similar(&self, cmd: &str) -> Vec<String>
pub fn suggest_similar(&self, cmd: &str) -> Vec<String>
Suggest similar commands for typos
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandAnalyzer
impl RefUnwindSafe for CommandAnalyzer
impl Send for CommandAnalyzer
impl Sync for CommandAnalyzer
impl Unpin for CommandAnalyzer
impl UnwindSafe for CommandAnalyzer
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