[][src]Struct cmdline_words_parser::PosixShellWords

pub struct PosixShellWords<'a, T: ?Sized + ByteStringSlice>(_, _);

Iterator yeilding unescaped strings in the standard POSIX shell format

  • Splits arguments on whitespace (space, tab, newline, and carriage return)
  • Special character escapes (\n, \t, \r) for literal versions of control characters
  • Supports single and double-quoted strings
  • Single quoted strings only support single quote and backslash escaped (any other character is passed verbatim)
  • Double quoted strings support a full set of escaped special characters.
  • Interpreted characters can be escaped by prefixing with a backslash

Trait Implementations

impl<'a, T: ?Sized + ByteStringSlice + 'a> Iterator for PosixShellWords<'a, T>[src]

type Item = &'a T

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, T: ?Sized> RefUnwindSafe for PosixShellWords<'a, T> where
    T: RefUnwindSafe

impl<'a, T: ?Sized> Send for PosixShellWords<'a, T> where
    T: Send

impl<'a, T: ?Sized> Sync for PosixShellWords<'a, T> where
    T: Sync

impl<'a, T: ?Sized> Unpin for PosixShellWords<'a, T> where
    T: Unpin

impl<'a, T> !UnwindSafe for PosixShellWords<'a, T>

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.