pub struct EnvVariableName(/* private fields */);Expand description
Validated environment variable name.
Ensures the name is non-empty and does not contain =.
Implementations§
Trait Implementations§
Source§impl AsRef<OsStr> for EnvVariableName
impl AsRef<OsStr> for EnvVariableName
Source§impl Clone for EnvVariableName
impl Clone for EnvVariableName
Source§fn clone(&self) -> EnvVariableName
fn clone(&self) -> EnvVariableName
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 EnvVariableName
impl Debug for EnvVariableName
Source§impl Display for EnvVariableName
impl Display for EnvVariableName
Source§impl FromStr for EnvVariableName
impl FromStr for EnvVariableName
Source§impl Ord for EnvVariableName
impl Ord for EnvVariableName
Source§fn cmp(&self, other: &EnvVariableName) -> Ordering
fn cmp(&self, other: &EnvVariableName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EnvVariableName
impl PartialEq for EnvVariableName
Source§fn eq(&self, other: &EnvVariableName) -> bool
fn eq(&self, other: &EnvVariableName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EnvVariableName
impl PartialOrd for EnvVariableName
impl Eq for EnvVariableName
impl StructuralPartialEq for EnvVariableName
Auto Trait Implementations§
impl Freeze for EnvVariableName
impl RefUnwindSafe for EnvVariableName
impl Send for EnvVariableName
impl Sync for EnvVariableName
impl Unpin for EnvVariableName
impl UnsafeUnpin for EnvVariableName
impl UnwindSafe for EnvVariableName
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