[−][src]Struct broot::commands::Command
Fields
raw: String
action: Action
Methods
impl Command
[src]
pub fn new() -> Command
[src]
pub fn from_raw(raw: String, finished: bool) -> Self
[src]
create a command from a raw input. finished
makes
the command an executed form, it's equivalent to
using the Enter key in the Gui.
pub fn from_pattern(pattern: &Pattern) -> Self
[src]
build a non executed command from a pattern
pub fn add_event(
&mut self,
event: &Event,
input_field: &mut InputField,
con: &AppContext,
state: &dyn AppState
)
[src]
&mut self,
event: &Event,
input_field: &mut InputField,
con: &AppContext,
state: &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>,