pub struct EnvironmentVariable { /* private fields */ }Expand description
One ordered service environment entry.
Implementations§
Source§impl EnvironmentVariable
impl EnvironmentVariable
Sourcepub const fn new(name: Identifier, value: EnvironmentValue) -> Self
pub const fn new(name: Identifier, value: EnvironmentValue) -> Self
Creates an environment entry.
Sourcepub const fn name(&self) -> &Identifier
pub const fn name(&self) -> &Identifier
Returns the variable name.
Sourcepub const fn value(&self) -> &EnvironmentValue
pub const fn value(&self) -> &EnvironmentValue
Returns the unresolved value form.
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 (const: unstable) · 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
impl Eq for EnvironmentVariable
Source§impl PartialEq for EnvironmentVariable
impl PartialEq 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 UnsafeUnpin 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