Struct shellexpand::LookupError
source · pub struct LookupError<E> {
pub var_name: String,
pub cause: E,
}
Expand description
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§
source§impl<E: Clone> Clone for LookupError<E>
impl<E: Clone> Clone for LookupError<E>
source§fn clone(&self) -> LookupError<E>
fn clone(&self) -> LookupError<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Debug> Debug for LookupError<E>
impl<E: Debug> Debug for LookupError<E>
source§impl<E: Display> Display for LookupError<E>
impl<E: Display> Display for LookupError<E>
source§impl<E: Error + 'static> Error for LookupError<E>
impl<E: Error + 'static> Error for LookupError<E>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl<E: PartialEq> PartialEq for LookupError<E>
impl<E: PartialEq> PartialEq for LookupError<E>
source§fn eq(&self, other: &LookupError<E>) -> bool
fn eq(&self, other: &LookupError<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E: Eq> Eq for LookupError<E>
impl<E> StructuralPartialEq for LookupError<E>
Auto Trait Implementations§
impl<E> Freeze for LookupError<E>where
E: Freeze,
impl<E> RefUnwindSafe for LookupError<E>where
E: RefUnwindSafe,
impl<E> Send for LookupError<E>where
E: Send,
impl<E> Sync for LookupError<E>where
E: Sync,
impl<E> Unpin for LookupError<E>where
E: Unpin,
impl<E> UnwindSafe for LookupError<E>where
E: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)