pub enum ExpandLookupError<'a> {
Unresolved(&'a str),
WriteFmt(Error),
}Expand description
Error returned from ExpandLookup::write_value.
The 'a lifetime is borrowed from the unresolved-name slice passed
into the call. Unresolved misses are common inside chained lookups,
so the error avoids allocating; the converting From impl into
ExpandError is where the name finally gets
copied if the miss escapes.
Variants§
Unresolved(&'a str)
name is not known to this lookup.
WriteFmt(Error)
The fmt::Write sink returned an error.
Trait Implementations§
Source§impl<'a> Clone for ExpandLookupError<'a>
impl<'a> Clone for ExpandLookupError<'a>
Source§fn clone(&self) -> ExpandLookupError<'a>
fn clone(&self) -> ExpandLookupError<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ExpandLookupError<'a>
impl<'a> Debug for ExpandLookupError<'a>
Source§impl<'a> Display for ExpandLookupError<'a>
impl<'a> Display for ExpandLookupError<'a>
impl<'a> Eq for ExpandLookupError<'a>
Source§impl<'a> Error for ExpandLookupError<'a>
impl<'a> Error for ExpandLookupError<'a>
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()
Source§impl<'a> From<Error> for ExpandLookupError<'a>
impl<'a> From<Error> for ExpandLookupError<'a>
Source§impl<'a> From<ExpandLookupError<'a>> for ExpandError
impl<'a> From<ExpandLookupError<'a>> for ExpandError
Source§fn from(value: ExpandLookupError<'a>) -> Self
fn from(value: ExpandLookupError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for ExpandLookupError<'a>
impl<'a> PartialEq for ExpandLookupError<'a>
impl<'a> StructuralPartialEq for ExpandLookupError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExpandLookupError<'a>
impl<'a> RefUnwindSafe for ExpandLookupError<'a>
impl<'a> Send for ExpandLookupError<'a>
impl<'a> Sync for ExpandLookupError<'a>
impl<'a> Unpin for ExpandLookupError<'a>
impl<'a> UnsafeUnpin for ExpandLookupError<'a>
impl<'a> UnwindSafe for ExpandLookupError<'a>
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