Struct dmntk_common::DmntkError
source · pub struct DmntkError(/* private fields */);
Expand description
Error definition used by all components of DMNTK project.
Implementations§
source§impl DmntkError
impl DmntkError
sourcepub fn new(source: &str, message: &str) -> Self
pub fn new(source: &str, message: &str) -> Self
Creates a new DmntkError with specified source name and error message.
Trait Implementations§
source§impl Debug for DmntkError
impl Debug for DmntkError
source§impl Display for DmntkError
impl Display for DmntkError
source§impl<T> From<T> for DmntkErrorwhere
T: ToErrorMessage,
impl<T> From<T> for DmntkErrorwhere
T: ToErrorMessage,
source§fn from(value: T) -> Self
fn from(value: T) -> Self
Converts any type that implements ToErrorMessage trait to DmntkError.
source§impl PartialEq for DmntkError
impl PartialEq for DmntkError
source§fn eq(&self, other: &DmntkError) -> bool
fn eq(&self, other: &DmntkError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DmntkError
impl StructuralPartialEq for DmntkError
Auto Trait Implementations§
impl Freeze for DmntkError
impl RefUnwindSafe for DmntkError
impl Send for DmntkError
impl Sync for DmntkError
impl Unpin for DmntkError
impl UnwindSafe for DmntkError
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