[−][src]Struct shellexpand::LookupError
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: Clone> Clone for LookupError<E>
[src]
fn clone(&self) -> LookupError<E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Debug> Debug for LookupError<E>
[src]
impl<E: Display> Display for LookupError<E>
[src]
impl<E: Eq> Eq for LookupError<E>
[src]
impl<E: Error + 'static> Error for LookupError<E>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<E: PartialEq> PartialEq<LookupError<E>> for LookupError<E>
[src]
fn eq(&self, other: &LookupError<E>) -> bool
[src]
fn ne(&self, other: &LookupError<E>) -> bool
[src]
impl<E> StructuralEq for LookupError<E>
[src]
impl<E> StructuralPartialEq for LookupError<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for LookupError<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for LookupError<E> where
E: Send,
E: Send,
impl<E> Sync for LookupError<E> where
E: Sync,
E: Sync,
impl<E> Unpin for LookupError<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for LookupError<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,