Enum pdbtbx::ErrorLevel [−][src]
This indicates the level of the error, to handle it differently based on the level of the raised error.
Variants
An error that breaks the execution of the program.
An error that invalidates the output of the function generating the error. So things like invalid characters, numeric literals etc.
A warning that invalidates some strict invariants posed by the specification. Which do not necessarily prevent the code from running, but will need to be checked.
A warning that invalidates some looser defined invariants. Which are generally bad but sometimes occur due to other software packages not following the specifications to the letter.
A general warning.
Implementations
impl ErrorLevel
[src]
pub fn descriptor(&self) -> &str
[src]
Get the descriptor for this ErrorLevel (Error/Warning). This can be used to display to users to indicate the severity of the error.
pub fn fails(&self, level: StrictnessLevel) -> bool
[src]
Tests if this errors is breaking with the given strictness level
Trait Implementations
impl Clone for ErrorLevel
[src]
fn clone(&self) -> ErrorLevel
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ErrorLevel
[src]
impl Debug for ErrorLevel
[src]
impl Display for ErrorLevel
[src]
impl Eq for ErrorLevel
[src]
impl Ord for ErrorLevel
[src]
fn cmp(&self, other: &ErrorLevel) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<ErrorLevel> for ErrorLevel
[src]
fn eq(&self, other: &ErrorLevel) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<ErrorLevel> for ErrorLevel
[src]
fn partial_cmp(&self, other: &ErrorLevel) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ErrorLevel
[src]
impl StructuralPartialEq for ErrorLevel
[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorLevel
impl Send for ErrorLevel
impl Sync for ErrorLevel
impl Unpin for ErrorLevel
impl UnwindSafe for ErrorLevel
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,