pub enum ExpandError {
Unresolved(SmolStr),
WriteFmt(Error),
Unterminated,
}Expand description
Error returned from expanding an ExpandStr.
Variants§
Unresolved(SmolStr)
A ${name} placeholder was not resolved by the lookup.
WriteFmt(Error)
The fmt::Write sink returned an error.
Unterminated
A ${ sequence was never closed by }.
Trait Implementations§
Source§impl Clone for ExpandError
impl Clone for ExpandError
Source§fn clone(&self) -> ExpandError
fn clone(&self) -> ExpandError
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 Debug for ExpandError
impl Debug for ExpandError
Source§impl Display for ExpandError
impl Display for ExpandError
impl Eq for ExpandError
Source§impl Error for ExpandError
impl Error for ExpandError
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 From<Error> for ExpandError
impl From<Error> for ExpandError
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 PartialEq for ExpandError
impl PartialEq for ExpandError
impl StructuralPartialEq for ExpandError
Auto Trait Implementations§
impl Freeze for ExpandError
impl RefUnwindSafe for ExpandError
impl Send for ExpandError
impl Sync for ExpandError
impl Unpin for ExpandError
impl UnsafeUnpin for ExpandError
impl UnwindSafe for ExpandError
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