pub enum TemplateErrorKind {
Show 18 variants
Html(HtmlErrorKind),
UnexpectedEnd,
UnclosedTag(String),
MismatchedEndTag {
expected: String,
found: String,
},
UnclosedElement(String),
StrayEndTag(String),
UnexpectedEndTagOfVoid(String),
ExtendsNotFirst,
StrayElse,
DuplicateElse,
StrayWhen,
TagLikeHole(String),
MalformedTag(String),
EmptyHole,
MalformedDirective(String),
NonCanonicalTag {
written: String,
canonical: String,
},
EventModifier(ModifierError),
RetiredViewForm(RetiredForm),
}Variants§
Html(HtmlErrorKind)
UnexpectedEnd
{end} with nothing open.
UnclosedTag(String)
A template tag (if, for each, inspect, block) still open at the end, or closed
by an element’s end tag.
MismatchedEndTag
</found> where <expected> is the innermost open element.
UnclosedElement(String)
An element still open at the end of the template, or at an {end}.
StrayEndTag(String)
</name> with no open element.
UnexpectedEndTagOfVoid(String)
A void element (<input>) given an end tag.
ExtendsNotFirst
{extends …} anywhere but first.
StrayElse
{else:} / {else if …:} outside an if (or else: outside if/for each).
DuplicateElse
A second {else:} in the same if / for each.
StrayWhen
{when …:} outside an {inspect …:}.
TagLikeHole(String)
A hole whose text ends in : — almost certainly a misspelled tag.
MalformedTag(String)
A tag that is missing a part ({if:}, {for each x:}, {let x}, {block}).
EmptyHole
{} or { }.
MalformedDirective(String)
A directive with the wrong value shape (on-click="add", bind="x").
NonCanonicalTag
A tag spelled the way another template language spells it ({elif c:}, {otherwise:},
{endif}), with the LGX spelling: (written, canonical).
EventModifier(ModifierError)
An on-<event>.<qualifier> whose qualifier the event-modifier catalogue refuses.
RetiredViewForm(RetiredForm)
A line written in the retired Render: dialect (retired_view_form).
Trait Implementations§
Source§impl Clone for TemplateErrorKind
impl Clone for TemplateErrorKind
Source§fn clone(&self) -> TemplateErrorKind
fn clone(&self) -> TemplateErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TemplateErrorKind
impl Debug for TemplateErrorKind
Source§impl PartialEq for TemplateErrorKind
impl PartialEq for TemplateErrorKind
impl Eq for TemplateErrorKind
impl StructuralPartialEq for TemplateErrorKind
Auto Trait Implementations§
impl Freeze for TemplateErrorKind
impl RefUnwindSafe for TemplateErrorKind
impl Send for TemplateErrorKind
impl Sync for TemplateErrorKind
impl Unpin for TemplateErrorKind
impl UnsafeUnpin for TemplateErrorKind
impl UnwindSafe for TemplateErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.