[][src]Struct broot::commands::Command

pub struct Command {
    pub raw: String,
    pub action: Action,
    // some fields omitted
}

Fields

raw: Stringaction: 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]

apply an event to modify the command. The command isn't applied to the state

Trait Implementations

impl Clone for Command[src]

impl Debug for Command[src]

impl Default for Command[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.