pub struct CommandSelector {
pub path: &'static [&'static str],
}Expand description
Declarative selector for a command path.
Fields§
§path: &'static [&'static str]Path segments for the selected command.
Implementations§
Source§impl CommandSelector
impl CommandSelector
Sourcepub const fn new(path: &'static [&'static str]) -> Self
pub const fn new(path: &'static [&'static str]) -> Self
Create a new CommandSelector.
Trait Implementations§
Source§impl Clone for CommandSelector
impl Clone for CommandSelector
Source§fn clone(&self) -> CommandSelector
fn clone(&self) -> CommandSelector
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandSelector
impl Debug for CommandSelector
Source§impl PartialEq for CommandSelector
impl PartialEq for CommandSelector
impl Copy for CommandSelector
impl Eq for CommandSelector
impl StructuralPartialEq for CommandSelector
Auto Trait Implementations§
impl Freeze for CommandSelector
impl RefUnwindSafe for CommandSelector
impl Send for CommandSelector
impl Sync for CommandSelector
impl Unpin for CommandSelector
impl UnsafeUnpin for CommandSelector
impl UnwindSafe for CommandSelector
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