pub struct EnvironmentVariable(/* private fields */);
Implementations§
Source§impl EnvironmentVariable
impl EnvironmentVariable
Sourcepub fn get_name(&self) -> &str
pub fn get_name(&self) -> &str
Create a new environment variable from a raw string.
§Example
use task::Environment_variable_type;
let Environment_variable = Environment_variable_type::new("Name", "Value");
assert_eq!(Environment_variable.get_name(), "Name");
Trait Implementations§
Source§impl Clone for EnvironmentVariable
impl Clone for EnvironmentVariable
Source§fn clone(&self) -> EnvironmentVariable
fn clone(&self) -> EnvironmentVariable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EnvironmentVariable
impl Debug for EnvironmentVariable
Source§impl Hash for EnvironmentVariable
impl Hash for EnvironmentVariable
Source§impl PartialEq for EnvironmentVariable
impl PartialEq for EnvironmentVariable
impl Eq for EnvironmentVariable
impl StructuralPartialEq for EnvironmentVariable
Auto Trait Implementations§
impl Freeze for EnvironmentVariable
impl RefUnwindSafe for EnvironmentVariable
impl Send for EnvironmentVariable
impl Sync for EnvironmentVariable
impl Unpin for EnvironmentVariable
impl UnwindSafe for EnvironmentVariable
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