[−][src]Struct broot::commands::Command
Fields
raw: String
action: Action
Methods
impl Command
[src]
pub fn new() -> Command
[src]
pub fn from(raw: String) -> Command
[src]
build a command from a string
Note that this isn't used (or usable) for interpretation
of the in-app user input. It's meant for interpretation
of a file or from a sequence of commands passed as argument
of the program.
A ':', even if at the end, is assumed to mean that the
command must be executed (it's equivalent to the user
typing enter
in the app
This specific syntax isn't definitive
pub fn from_pattern(pattern: &Pattern) -> Self
[src]
pub fn add_event(
&mut self,
event: &Event,
input_field: &mut InputField,
con: &AppContext,
state: &Box<dyn AppState>
)
[src]
&mut self,
event: &Event,
input_field: &mut InputField,
con: &AppContext,
state: &Box<dyn AppState>
)
apply an event to modify the command. The command isn't applied to the state
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,