Struct SplitPathsRef

#[must_use = "iterators are lazy and do nothing unless consumed"]
pub struct SplitPathsRef<'a> { pub(in ::env) inner: Map<Split<'a, u8, impl FnMut(&u8) -> bool + 'static>, impl FnMut(&[u8]) -> &Path + 'static> }

An iterator that splits an environment variable into paths according to platform-specific conventions.

The iterator element type is &[Path].

This structure is created by env::split_paths_ref(). See its documentation for more.

Fields

inner: Map<Split<'a, u8, impl FnMut(&u8) -> bool + 'static>, impl FnMut(&[u8]) -> &Path + 'static>

Trait Implementations

impl Debug for SplitPathsRef<'_>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'a> Iterator for SplitPathsRef<'a>

type Item = &'a Path;
fn next(&mut self) -> Option<&'a Path>
fn size_hint(&self) -> (usize, Option<usize>)

Auto Trait Implementations

impl<'a> Freeze for SplitPathsRef<'a>

impl<'a> RefUnwindSafe for SplitPathsRef<'a>

impl<'a> Send for SplitPathsRef<'a>

impl<'a> Sync for SplitPathsRef<'a>

impl<'a> Unpin for SplitPathsRef<'a>

impl<'a> UnsafeUnpin for SplitPathsRef<'a>

impl<'a> UnwindSafe for SplitPathsRef<'a>

Blanket Implementations

impl<I> IntoIterator for SplitPathsRef<'a> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for SplitPathsRef<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SplitPathsRef<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SplitPathsRef<'a> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for SplitPathsRef<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for SplitPathsRef<'a> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for SplitPathsRef<'a>

impl<T, U> Into<U> for SplitPathsRef<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for SplitPathsRef<'a> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for SplitPathsRef<'a> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>