Struct broot::verb::VerbInvocation
source · [−]Expand description
the verb and its arguments, making the invocation. When coming from parsing, the args is Some as soon as there’s a separator (i.e. it’s “” in “cp “)
Fields
name: String
args: Option<String>
bang: bool
Implementations
sourceimpl VerbInvocation
impl VerbInvocation
pub fn new<T: Into<String>>(name: T, args: Option<T>, bang: bool) -> Self
pub fn is_empty(&self) -> bool
sourcepub fn complete_name(&self) -> String
pub fn complete_name(&self) -> String
build a new String
sourcepub fn to_string_for_name(&self, name: &str) -> String
pub fn to_string_for_name(&self, name: &str) -> String
basically return the invocation but allow another name (the shortcut or a variant)
Trait Implementations
sourceimpl Clone for VerbInvocation
impl Clone for VerbInvocation
sourcefn clone(&self) -> VerbInvocation
fn clone(&self) -> VerbInvocation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VerbInvocation
impl Debug for VerbInvocation
sourceimpl Display for VerbInvocation
impl Display for VerbInvocation
sourceimpl From<&'_ str> for VerbInvocation
impl From<&'_ str> for VerbInvocation
sourceimpl PartialEq<VerbInvocation> for VerbInvocation
impl PartialEq<VerbInvocation> for VerbInvocation
sourcefn eq(&self, other: &VerbInvocation) -> bool
fn eq(&self, other: &VerbInvocation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VerbInvocation) -> bool
fn ne(&self, other: &VerbInvocation) -> bool
This method tests for !=
.
impl StructuralPartialEq for VerbInvocation
Auto Trait Implementations
impl RefUnwindSafe for VerbInvocation
impl Send for VerbInvocation
impl Sync for VerbInvocation
impl Unpin for VerbInvocation
impl UnwindSafe for VerbInvocation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more