Struct pdbtbx::PDBError [−][src]
An error surfacing while handling a PDB
Implementations
impl PDBError
[src]
pub fn new(
level: ErrorLevel,
short_desc: &str,
long_descr: &str,
context: Context
) -> PDBError
[src]
level: ErrorLevel,
short_desc: &str,
long_descr: &str,
context: Context
) -> PDBError
Create a new PDBError
Arguments
level
- The level of the error, defining how it should be handledshort_desc
- A short description of the error, generally used as title linelong_desc
- A longer description of the error, presented below the context to give more information and helpful feedbackcontext
- The context, in the most general sense this produces output which leads the user to the right place in the code or file
pub fn level(&self) -> ErrorLevel
[src]
The level of the error
pub fn fails(&self, level: StrictnessLevel) -> bool
[src]
Tests if this errors is breaking with the given strictness level
pub fn short_description(&self) -> &str
[src]
Gives the short description or title for this error
Trait Implementations
impl Clone for PDBError
[src]
impl Debug for PDBError
[src]
impl Display for PDBError
[src]
impl Eq for PDBError
[src]
impl Error for PDBError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl Ord for PDBError
[src]
fn cmp(&self, other: &Self) -> 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<PDBError> for PDBError
[src]
impl PartialOrd<PDBError> for PDBError
[src]
fn partial_cmp(&self, other: &Self) -> 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 PDBError
[src]
impl StructuralPartialEq for PDBError
[src]
Auto Trait Implementations
impl RefUnwindSafe for PDBError
impl Send for PDBError
impl Sync for PDBError
impl Unpin for PDBError
impl UnwindSafe for PDBError
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>,