#[repr(i32)]pub enum ErrorLevel {
None = 0,
Warning = 1,
Error = 2,
Fatal = 3,
}Expand description
Severity of the error.
Warning < Error < Fatal. Fatal errors abort processing; warnings and
errors may still produce a partial document.
Discriminants match libxml2’s xmlErrorLevel.
Variants§
None = 0
XML_ERR_NONE (0) is a no-error sentinel libxml2 sometimes emits;
callers should treat it as “not actually an error.” We don’t
construct it from Rust.
Warning = 1
Error = 2
Fatal = 3
Trait Implementations§
Source§impl Clone for ErrorLevel
impl Clone for ErrorLevel
Source§fn clone(&self) -> ErrorLevel
fn clone(&self) -> ErrorLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ErrorLevel
Source§impl Debug for ErrorLevel
impl Debug for ErrorLevel
impl Eq for ErrorLevel
Source§impl Ord for ErrorLevel
impl Ord for ErrorLevel
Source§fn cmp(&self, other: &ErrorLevel) -> Ordering
fn cmp(&self, other: &ErrorLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ErrorLevel
impl PartialEq for ErrorLevel
Source§fn eq(&self, other: &ErrorLevel) -> bool
fn eq(&self, other: &ErrorLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ErrorLevel
impl PartialOrd for ErrorLevel
impl StructuralPartialEq for ErrorLevel
Auto Trait Implementations§
impl Freeze for ErrorLevel
impl RefUnwindSafe for ErrorLevel
impl Send for ErrorLevel
impl Sync for ErrorLevel
impl Unpin for ErrorLevel
impl UnsafeUnpin for ErrorLevel
impl UnwindSafe for ErrorLevel
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