pub enum DomXmlParseError {
NoHtmlNode,
MultipleHtmlRootNodes,
NoBodyInHtml,
MultipleBodyNodes,
Xml(XmlError),
MalformedHierarchy(AzString, AzString),
RenderDom(RenderDomError),
Component(ComponentParseError),
Css(CssParseErrorOwned),
}
Variants§
NoHtmlNode
No <html></html>
node component present
MultipleHtmlRootNodes
Multiple <html>
nodes
NoBodyInHtml
No ´
MultipleBodyNodes
The DOM can only have one
node, not multiple.
Xml(XmlError)
Note: Sadly, the error type can only be a string because xmlparser returns all errors as strings. There is an open PR to fix this deficiency, but since the XML parsing is only needed for hot-reloading and compiling, it doesn’t matter that much.
MalformedHierarchy(AzString, AzString)
Invalid hierarchy close tags, i.e <app></p></app>
RenderDom(RenderDomError)
A component raised an error while rendering the DOM - holds the component name + error string
Component(ComponentParseError)
Something went wrong while parsing an XML component
Css(CssParseErrorOwned)
Error parsing global CSS in head node
Trait Implementations§
Source§impl Clone for DomXmlParseError
impl Clone for DomXmlParseError
Source§fn clone(&self) -> DomXmlParseError
fn clone(&self) -> DomXmlParseError
Returns a copy 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 DomXmlParseError
impl Debug for DomXmlParseError
Source§impl<'a> Display for DomXmlParseError
impl<'a> Display for DomXmlParseError
Source§impl From<ComponentParseError> for DomXmlParseError
impl From<ComponentParseError> for DomXmlParseError
Source§fn from(e: ComponentParseError) -> DomXmlParseError
fn from(e: ComponentParseError) -> DomXmlParseError
Converts to this type from the input type.
Source§impl From<CssParseErrorOwned> for DomXmlParseError
impl From<CssParseErrorOwned> for DomXmlParseError
Source§fn from(e: CssParseErrorOwned) -> DomXmlParseError
fn from(e: CssParseErrorOwned) -> DomXmlParseError
Converts to this type from the input type.
Source§impl From<DomXmlParseError> for CompileError
impl From<DomXmlParseError> for CompileError
Source§fn from(e: DomXmlParseError) -> CompileError
fn from(e: DomXmlParseError) -> CompileError
Converts to this type from the input type.
Source§impl From<RenderDomError> for DomXmlParseError
impl From<RenderDomError> for DomXmlParseError
Source§fn from(e: RenderDomError) -> DomXmlParseError
fn from(e: RenderDomError) -> DomXmlParseError
Converts to this type from the input type.
Source§impl From<XmlError> for DomXmlParseError
impl From<XmlError> for DomXmlParseError
Source§fn from(e: XmlError) -> DomXmlParseError
fn from(e: XmlError) -> DomXmlParseError
Converts to this type from the input type.
Source§impl PartialEq for DomXmlParseError
impl PartialEq for DomXmlParseError
impl StructuralPartialEq for DomXmlParseError
Auto Trait Implementations§
impl Freeze for DomXmlParseError
impl RefUnwindSafe for DomXmlParseError
impl Send for DomXmlParseError
impl Sync for DomXmlParseError
impl Unpin for DomXmlParseError
impl UnwindSafe for DomXmlParseError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more