[−][src]Struct pdbtbx::PDBError
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
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
impl RefUnwindSafe for PDBError
[src]
impl Send for PDBError
[src]
impl Sync for PDBError
[src]
impl Unpin for PDBError
[src]
impl UnwindSafe for PDBError
[src]
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>,