[][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: 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]

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]

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.