pub enum CommandEntry {
Item(CommandItem),
Group(CommandGroup),
Separator,
}Expand description
A top-level entry in a crate::command::Command.
Variants§
Item(CommandItem)
A single ungrouped item.
Group(CommandGroup)
A titled group of items.
Separator
A divider between groups.
A separator that ends up leading, trailing, or next to another separator once the query has filtered the list is not rendered.
Trait Implementations§
Source§impl Clone for CommandEntry
impl Clone for CommandEntry
Source§impl From<CommandGroup> for CommandEntry
impl From<CommandGroup> for CommandEntry
Source§fn from(group: CommandGroup) -> Self
fn from(group: CommandGroup) -> Self
Converts to this type from the input type.
Source§impl From<CommandItem> for CommandEntry
impl From<CommandItem> for CommandEntry
Source§fn from(item: CommandItem) -> Self
fn from(item: CommandItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CommandEntry
impl !Send for CommandEntry
impl !Sync for CommandEntry
impl !UnwindSafe for CommandEntry
impl Freeze for CommandEntry
impl Unpin for CommandEntry
impl UnsafeUnpin for CommandEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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