pub struct Globals(/* private fields */);Expand description
A map of environment names to their global variable maps.
Implementations§
Source§impl Globals
impl Globals
Sourcepub fn entries(
&self,
) -> impl Iterator<Item = (&'static str, &'static Map<&'static str, bool>)> + '_
pub fn entries( &self, ) -> impl Iterator<Item = (&'static str, &'static Map<&'static str, bool>)> + '_
Returns an iterator over the entries of the globals map.
Sourcepub fn get(&self, key: &str) -> Option<&'static Map<&'static str, bool>>
pub fn get(&self, key: &str) -> Option<&'static Map<&'static str, bool>>
Returns the globals map for the given environment name.
Sourcepub fn values(
&self,
) -> impl Iterator<Item = &'static Map<&'static str, bool>> + '_
pub fn values( &self, ) -> impl Iterator<Item = &'static Map<&'static str, bool>> + '_
Returns an iterator over the values of the globals map.
Sourcepub fn contains_key(&self, key: &str) -> bool
pub fn contains_key(&self, key: &str) -> bool
Returns true if the globals map contains the given environment name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Globals
impl RefUnwindSafe for Globals
impl Send for Globals
impl Sync for Globals
impl Unpin for Globals
impl UnsafeUnpin for Globals
impl UnwindSafe for Globals
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