[][src]Struct pdbtbx::PDBError

pub struct PDBError { /* fields omitted */ }

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]

Create a new PDBError

Arguments

  • level - The level of the error, defining how it should be handled
  • short_desc - A short description of the error, generally used as title line
  • long_desc - A longer description of the error, presented below the context to give more information and helpful feedback
  • context - 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

Trait Implementations

impl Clone for PDBError[src]

impl Debug for PDBError[src]

impl Display for PDBError[src]

impl Error for PDBError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.