pub enum TemplateExpansionError {
Failed(String),
ExpandCommandMissing(String),
UnknownTemplating(PathBuf, Option<PathBuf>),
Conflict(ChangeConflict),
}Expand description
Error type for template expansion operations
Variants§
Failed(String)
The expansion failed with an error message
ExpandCommandMissing(String)
The expand command is missing
UnknownTemplating(PathBuf, Option<PathBuf>)
Unknown templating type encountered
Conflict(ChangeConflict)
A change conflict occurred
Trait Implementations§
Source§impl Debug for TemplateExpansionError
impl Debug for TemplateExpansionError
Source§impl Display for TemplateExpansionError
impl Display for TemplateExpansionError
Source§impl Error for TemplateExpansionError
impl Error for TemplateExpansionError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ChangeConflict> for TemplateExpansionError
impl From<ChangeConflict> for TemplateExpansionError
Source§fn from(e: ChangeConflict) -> Self
fn from(e: ChangeConflict) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TemplateExpansionError
impl RefUnwindSafe for TemplateExpansionError
impl Send for TemplateExpansionError
impl Sync for TemplateExpansionError
impl Unpin for TemplateExpansionError
impl UnwindSafe for TemplateExpansionError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<E> Fail for E
impl<E> Fail for E
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.