pub struct XmlError { /* private fields */ }Expand description
Structured error used by the XML engine.
Implementations§
Source§impl XmlError
impl XmlError
pub fn new(kind: ErrorKind, message: impl Into<String>) -> Self
pub fn with_span(self, span: Span) -> Self
pub fn invalid_name(name: impl AsRef<str>, reason: impl AsRef<str>) -> Self
pub fn kind(&self) -> &ErrorKind
pub fn message(&self) -> &str
pub fn span(&self) -> Option<Span>
Trait Implementations§
impl Eq for XmlError
Source§impl Error for XmlError
impl Error for XmlError
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()
impl StructuralPartialEq for XmlError
Auto Trait Implementations§
impl Freeze for XmlError
impl RefUnwindSafe for XmlError
impl Send for XmlError
impl Sync for XmlError
impl Unpin for XmlError
impl UnsafeUnpin for XmlError
impl UnwindSafe for XmlError
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