Struct vidar::Environment
[−]
pub struct Environment { /* fields omitted */ }
The Environment
of the given kind.
Methods
impl Environment
fn current(&self) -> &Kind
The Kind
of this environment.
fn props(&self) -> &HashMap<String, String>
The key-value pairs for this environment (common + kind).
Trait Implementations
impl Clone for Environment
[src]
fn clone(&self) -> Environment
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Environment
[src]
impl Eq for Environment
[src]
impl PartialEq for Environment
[src]
fn eq(&self, __arg_0: &Environment) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Environment) -> bool
This method tests for !=
.
impl<'a> TryFrom<&'a str> for Environment
[src]
type Error = Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(name: &'a str) -> Result<Environment>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.