pub enum MustacheError {
SyntaxError(String),
UnclosedTag {
line: usize,
},
UnclosedSection {
tag: String,
line: usize,
},
MismatchedSection {
expected: String,
got: String,
line: usize,
},
EmptyTag {
line: usize,
},
}Expand description
Error type for mustache template operations.
Variants§
SyntaxError(String)
Syntax error in template.
UnclosedTag
Unclosed tag.
UnclosedSection
Unclosed section.
MismatchedSection
Mismatched section closing tag.
EmptyTag
Empty tag.
Trait Implementations§
Source§impl Clone for MustacheError
impl Clone for MustacheError
Source§fn clone(&self) -> MustacheError
fn clone(&self) -> MustacheError
Returns a duplicate 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 Debug for MustacheError
impl Debug for MustacheError
Source§impl Display for MustacheError
impl Display for MustacheError
Source§impl Error for MustacheError
impl Error for MustacheError
1.30.0 · 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 PartialEq for MustacheError
impl PartialEq for MustacheError
impl StructuralPartialEq for MustacheError
Auto Trait Implementations§
impl Freeze for MustacheError
impl RefUnwindSafe for MustacheError
impl Send for MustacheError
impl Sync for MustacheError
impl Unpin for MustacheError
impl UnwindSafe for MustacheError
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§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.