Struct broot::verb::ExecutionStringBuilder[][src]

pub struct ExecutionStringBuilder<'b> {
    pub sel: Selection<'b>,
    // some fields omitted
}

a temporary structure gathering selection and invocation parameters and able to generate an executable string from a verb’s execution pattern

Fields

sel: Selection<'b>

the current file selection

Implementations

impl<'b> ExecutionStringBuilder<'b>[src]

pub fn from_selection(sel: Selection<'b>) -> Self[src]

pub fn from_invocation(
    invocation_parser: &Option<InvocationParser>,
    sel: Selection<'b>,
    other_file: &'b Option<PathBuf>,
    invocation_args: &Option<String>
) -> Self
[src]

pub fn shell_exec_string(&self, exec_pattern: &ExecPattern) -> String[src]

build a shell compatible command, with escapings

pub fn exec_token(&self, exec_pattern: &ExecPattern) -> Vec<String>[src]

build a vec of tokens which can be passed to Command to launch an executable

Auto Trait Implementations

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> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,