Struct broot::verb::InternalExecution
source · pub struct InternalExecution {
pub internal: Internal,
pub bang: bool,
pub arg: Option<String>,
}
Expand description
A verb execution definition based on an internal
Fields§
§internal: Internal
the internal to use
bang: bool
whether to open the resulting state in a new panel instead of the current ones
arg: Option<String>
arguments
(for example "~"
when a verb execution is :!focus ~
)
Implementations§
source§impl InternalExecution
impl InternalExecution
pub fn from_internal(internal: Internal) -> Self
pub fn from_internal_bang(internal: Internal, bang: bool) -> Self
pub fn try_from(invocation_str: &str) -> Result<Self, ConfError>
pub fn needs_selection(&self) -> bool
Trait Implementations§
source§impl Clone for InternalExecution
impl Clone for InternalExecution
source§fn clone(&self) -> InternalExecution
fn clone(&self) -> InternalExecution
Returns a copy 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 InternalExecution
impl Debug for InternalExecution
Auto Trait Implementations§
impl RefUnwindSafe for InternalExecution
impl Send for InternalExecution
impl Sync for InternalExecution
impl Unpin for InternalExecution
impl UnwindSafe for InternalExecution
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