pub struct AuxCmdNamespace {
commands: IndexMap<String, Command>,
pub top_commands: Vec<String>,
index: usize,
help: Option<String>,
}Fields§
§commands: IndexMap<String, Command>§top_commands: Vec<String>§index: usize§help: Option<String>Implementations§
Source§impl AuxCmdNamespace
impl AuxCmdNamespace
fn _add_cmd( slf: &mut Self, current_path: String, current_cmd: &mut CommandTOML, parent_cmd: Option<&Command>, ) -> Result<bool>
pub fn new( index: usize, config: &AuxillaryCommandsTOML, exts: &mut Extensions, ) -> Result<Self>
pub fn namespace(&self) -> String
pub fn path(&self) -> PathBuf
pub fn root(&self) -> PathBuf
pub fn origin(&self) -> PathBuf
Auto Trait Implementations§
impl Freeze for AuxCmdNamespace
impl RefUnwindSafe for AuxCmdNamespace
impl Send for AuxCmdNamespace
impl Sync for AuxCmdNamespace
impl Unpin for AuxCmdNamespace
impl UnwindSafe for AuxCmdNamespace
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more