pub struct Env<'sg, LABEL: 'sg, DATA>(/* private fields */);
Expand description
Representation of an environment (i.e., a collection of resolved paths).
Implementations§
Source§impl<'sg, LABEL, DATA> Env<'sg, LABEL, DATA>
impl<'sg, LABEL, DATA> Env<'sg, LABEL, DATA>
Sourcepub fn iter<'a>(
&'a self,
) -> impl Iterator<Item = &'a ResolvedPath<'sg, LABEL, DATA>> + 'a
pub fn iter<'a>( &'a self, ) -> impl Iterator<Item = &'a ResolvedPath<'sg, LABEL, DATA>> + 'a
Create an iterator over all paths in the environment.
Source§impl<'sg, LABEL, DATA> Env<'sg, LABEL, DATA>
impl<'sg, LABEL, DATA> Env<'sg, LABEL, DATA>
Sourcepub fn single(path: ResolvedPath<'sg, LABEL, DATA>) -> Self
pub fn single(path: ResolvedPath<'sg, LABEL, DATA>) -> Self
Create an environment with a single path.
Sourcepub fn insert(&mut self, path: ResolvedPath<'sg, LABEL, DATA>)
pub fn insert(&mut self, path: ResolvedPath<'sg, LABEL, DATA>)
Insert a path in the environment.
Trait Implementations§
Source§impl<'sg: 'rslv, 'rslv, LABEL, DATA> EnvContainer<'sg, 'rslv, LABEL, DATA> for Env<'sg, LABEL, DATA>
impl<'sg: 'rslv, 'rslv, LABEL, DATA> EnvContainer<'sg, 'rslv, LABEL, DATA> for Env<'sg, LABEL, DATA>
Source§impl<'sg: 'rslv, 'rslv, LABEL, DATA> From<Env<'sg, LABEL, DATA>> for FutureWrapper<'rslv, Env<'sg, LABEL, DATA>>where
LABEL: Clone,
impl<'sg: 'rslv, 'rslv, LABEL, DATA> From<Env<'sg, LABEL, DATA>> for FutureWrapper<'rslv, Env<'sg, LABEL, DATA>>where
LABEL: Clone,
Source§impl<'sg, LABEL: 'sg, DATA: 'sg, E> From<Env<'sg, LABEL, DATA>> for Result<Env<'sg, LABEL, DATA>, E>
impl<'sg, LABEL: 'sg, DATA: 'sg, E> From<Env<'sg, LABEL, DATA>> for Result<Env<'sg, LABEL, DATA>, E>
Source§impl<'sg, LABEL: 'sg, DATA: Hash> FromIterator<Env<'sg, LABEL, DATA>> for Env<'sg, LABEL, DATA>
impl<'sg, LABEL: 'sg, DATA: Hash> FromIterator<Env<'sg, LABEL, DATA>> for Env<'sg, LABEL, DATA>
Source§impl<'sg, LABEL: 'sg, DATA: Hash> FromIterator<ResolvedPath<'sg, LABEL, DATA>> for Env<'sg, LABEL, DATA>
impl<'sg, LABEL: 'sg, DATA: Hash> FromIterator<ResolvedPath<'sg, LABEL, DATA>> for Env<'sg, LABEL, DATA>
Source§fn from_iter<T: IntoIterator<Item = ResolvedPath<'sg, LABEL, DATA>>>(
iter: T,
) -> Self
fn from_iter<T: IntoIterator<Item = ResolvedPath<'sg, LABEL, DATA>>>( iter: T, ) -> Self
Creates a value from an iterator. Read more
Source§impl<'sg, LABEL, DATA> IntoIterator for Env<'sg, LABEL, DATA>
impl<'sg, LABEL, DATA> IntoIterator for Env<'sg, LABEL, DATA>
Source§type Item = ResolvedPath<'sg, LABEL, DATA>
type Item = ResolvedPath<'sg, LABEL, DATA>
The type of the elements being iterated over.
Source§type IntoIter = <HashSet<ResolvedPath<'sg, LABEL, DATA>> as IntoIterator>::IntoIter
type IntoIter = <HashSet<ResolvedPath<'sg, LABEL, DATA>> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl<'sg, LABEL, DATA> Freeze for Env<'sg, LABEL, DATA>
impl<'sg, LABEL, DATA> RefUnwindSafe for Env<'sg, LABEL, DATA>where
DATA: RefUnwindSafe,
LABEL: RefUnwindSafe,
impl<'sg, LABEL, DATA> !Send for Env<'sg, LABEL, DATA>
impl<'sg, LABEL, DATA> !Sync for Env<'sg, LABEL, DATA>
impl<'sg, LABEL, DATA> Unpin for Env<'sg, LABEL, DATA>
impl<'sg, LABEL, DATA> UnwindSafe for Env<'sg, LABEL, DATA>where
DATA: RefUnwindSafe,
LABEL: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more