pub struct CommandInfo { /* private fields */ }Expand description
Public, copyable view of one command registry entry.
Implementations§
Source§impl CommandInfo
impl CommandInfo
Sourcepub const fn category(self) -> CommandCategory
pub const fn category(self) -> CommandCategory
Registry category.
Sourcepub const fn arguments(self) -> ArgumentShape
pub const fn arguments(self) -> ArgumentShape
Argument shape.
Sourcepub const fn unicode(self) -> Option<&'static str>
pub const fn unicode(self) -> Option<&'static str>
Direct Unicode output, when the command has one.
Sourcepub const fn support(self) -> SupportStatus
pub const fn support(self) -> SupportStatus
Current mdwright support status.
Trait Implementations§
Source§impl Clone for CommandInfo
impl Clone for CommandInfo
Source§fn clone(&self) -> CommandInfo
fn clone(&self) -> CommandInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandInfo
impl Debug for CommandInfo
Source§impl PartialEq for CommandInfo
impl PartialEq for CommandInfo
Source§fn eq(&self, other: &CommandInfo) -> bool
fn eq(&self, other: &CommandInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CommandInfo
impl Eq for CommandInfo
impl StructuralPartialEq for CommandInfo
Auto Trait Implementations§
impl Freeze for CommandInfo
impl RefUnwindSafe for CommandInfo
impl Send for CommandInfo
impl Sync for CommandInfo
impl Unpin for CommandInfo
impl UnsafeUnpin for CommandInfo
impl UnwindSafe for CommandInfo
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