pub struct EnvVarName { /* private fields */ }Expand description
An owned, validated environment variable name.
Implementations§
Source§impl EnvVarName
impl EnvVarName
Sourcepub fn new(name: impl Into<String>) -> Result<EnvVarName, EnvVarNameError>
pub fn new(name: impl Into<String>) -> Result<EnvVarName, EnvVarNameError>
Creates a validated environment variable name.
§Errors
Returns EnvVarNameError when name is empty or contains unsupported characters.
Trait Implementations§
Source§impl AsRef<str> for EnvVarName
impl AsRef<str> for EnvVarName
Source§impl Clone for EnvVarName
impl Clone for EnvVarName
Source§fn clone(&self) -> EnvVarName
fn clone(&self) -> EnvVarName
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 EnvVarName
impl Debug for EnvVarName
Source§impl Display for EnvVarName
impl Display for EnvVarName
Source§impl Hash for EnvVarName
impl Hash for EnvVarName
Source§impl PartialEq for EnvVarName
impl PartialEq for EnvVarName
Source§fn eq(&self, other: &EnvVarName) -> bool
fn eq(&self, other: &EnvVarName) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EnvVarName
impl StructuralPartialEq for EnvVarName
Auto Trait Implementations§
impl Freeze for EnvVarName
impl RefUnwindSafe for EnvVarName
impl Send for EnvVarName
impl Sync for EnvVarName
impl Unpin for EnvVarName
impl UnsafeUnpin for EnvVarName
impl UnwindSafe for EnvVarName
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