pub struct Command { /* private fields */ }
Expand description
Represents a command and its arguments
Implementations§
Source§impl Command
impl Command
Sourcepub fn new(
label: String,
arguments: Vec<(String, Scope)>,
) -> Result<Self, InternalError>
pub fn new( label: String, arguments: Vec<(String, Scope)>, ) -> Result<Self, InternalError>
Construct new Command
Sourcepub fn new_unchecked(label: String, arguments: Vec<(String, Scope)>) -> Self
pub fn new_unchecked(label: String, arguments: Vec<(String, Scope)>) -> Self
Construct new Command without checking
Sourcepub fn label_owned(self) -> String
pub fn label_owned(self) -> String
Return owned label of the command
Sourcepub fn arguments_owned(self) -> Vec<(String, Scope)>
pub fn arguments_owned(self) -> Vec<(String, Scope)>
Return owned arguments of the command
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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