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

The name of the problematic variable inside the input string.

The original error returned by the context function.

Trait Implementations

impl<E> Error for LookupError<E> where
    E: Error
[src]

[src]

[src]

impl<E> Clone for LookupError<E> where
    E: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<E> Eq for LookupError<E> where
    E: Eq
[src]

impl<E> PartialEq<LookupError<E>> for LookupError<E> where
    E: PartialEq<E>, 
[src]

[src]

[src]

impl<E> Debug for LookupError<E> where
    E: Debug
[src]

[src]

Formats the value using the given formatter.

impl<E> Display for LookupError<E> where
    E: Display
[src]

[src]

Formats the value using the given formatter. Read more