[][src]Struct pathsearch::SimplePathSearcher

pub struct SimplePathSearcher<'a> { /* fields omitted */ }

SimplePathSearcher is an iterator that yields candidate PathBuf inthstances generated from searching the supplied path string following the standard rules: explode path by the system path separator character and then for each entry, concatenate the candidate command and test whether that is a file.

Methods

impl<'a> SimplePathSearcher<'a>[src]

pub fn new<T: AsRef<OsStr> + ?Sized>(
    command: &'a T,
    path: Option<&'a OsStr>
) -> Self
[src]

Create a new SimplePathSearcher that will yield candidate paths for the specified command

Trait Implementations

impl<'a> Iterator for SimplePathSearcher<'a>[src]

type Item = PathBuf

The type of the elements being iterated over.

fn next(&mut self) -> Option<PathBuf>[src]

Returns the next candidate path

Auto Trait Implementations

impl<'a> RefUnwindSafe for SimplePathSearcher<'a>

impl<'a> Send for SimplePathSearcher<'a>

impl<'a> Sync for SimplePathSearcher<'a>

impl<'a> Unpin for SimplePathSearcher<'a>

impl<'a> UnwindSafe for SimplePathSearcher<'a>

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.