Struct stdcli::prelude::shellexpand::LookupError
[−]
[src]
pub struct LookupError<E> { pub var_name: String, pub cause: E, }
Represents a variable lookup error.
This error is returned by env_with_context()
function (and, therefore, also by env()
,
full_with_context()
and full()
) when the provided context function returns an error. The
original error is provided in the cause
field, while name
contains the name of a variable
whose expansion caused the error.
Fields
var_name: String
The name of the problematic variable inside the input string.
cause: E
The original error returned by the context function.
Trait Implementations
impl<E> Error for LookupError<E> where
E: Error,
[src]
E: Error,
impl<E> Clone for LookupError<E> where
E: Clone,
[src]
E: Clone,
fn clone(&self) -> LookupError<E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<E> Eq for LookupError<E> where
E: Eq,
[src]
E: Eq,
impl<E> PartialEq<LookupError<E>> for LookupError<E> where
E: PartialEq<E>,
[src]
E: PartialEq<E>,
fn eq(&self, __arg_0: &LookupError<E>) -> bool
[src]
fn ne(&self, __arg_0: &LookupError<E>) -> bool
[src]
impl<E> Debug for LookupError<E> where
E: Debug,
[src]
E: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<E> Display for LookupError<E> where
E: Display,
[src]
E: Display,