pub enum XmlParseError {
NoRootComponent,
MultipleRootComponents,
ParseError(XmlError),
MalformedHierarchy(String, String),
RenderDom(RenderDomError),
Component(ComponentParseError),
}Variants§
NoRootComponent
No <app></app> root component present
MultipleRootComponents
The DOM can only have one root component, not multiple.
ParseError(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(String, String)
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
Trait Implementations§
Source§impl Debug for XmlParseError
impl Debug for XmlParseError
Source§impl Display for XmlParseError
impl Display for XmlParseError
Source§impl From<ComponentParseError> for XmlParseError
impl From<ComponentParseError> for XmlParseError
Source§fn from(e: ComponentParseError) -> Self
fn from(e: ComponentParseError) -> Self
Converts to this type from the input type.
Source§impl From<RenderDomError> for XmlParseError
impl From<RenderDomError> for XmlParseError
Source§fn from(e: RenderDomError) -> Self
fn from(e: RenderDomError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XmlParseError
impl RefUnwindSafe for XmlParseError
impl Send for XmlParseError
impl Sync for XmlParseError
impl Unpin for XmlParseError
impl UnsafeUnpin for XmlParseError
impl UnwindSafe for XmlParseError
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