pub enum ExpandVarsError {
Var {
name: String,
source: VarError,
},
Regex(String),
}Expand description
Error returned by expand_env_vars.
Variants§
Var
An environment variable referenced by the input is missing or contains invalid Unicode.
Regex(String)
The internal regex failed to compile (should never happen with a literal pattern).
Trait Implementations§
Source§impl Debug for ExpandVarsError
impl Debug for ExpandVarsError
Source§impl Display for ExpandVarsError
impl Display for ExpandVarsError
Source§impl Error for ExpandVarsError
impl Error for ExpandVarsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ExpandVarsError
impl RefUnwindSafe for ExpandVarsError
impl Send for ExpandVarsError
impl Sync for ExpandVarsError
impl Unpin for ExpandVarsError
impl UnsafeUnpin for ExpandVarsError
impl UnwindSafe for ExpandVarsError
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