pub struct ErrorCategoryHandle { /* private fields */ }
Expand description
A handle to a type that implements ErrorCategory
.
Implementations§
Source§impl ErrorCategoryHandle
impl ErrorCategoryHandle
Sourcepub fn new<C: ErrorCategory>() -> ErrorCategoryHandle
pub fn new<C: ErrorCategory>() -> ErrorCategoryHandle
Create a new handle from the type parameter C
.
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
Get the name of this associated ErrorCategory
.
Sourcepub fn is_handle_of<C: ErrorCategory>(&self) -> bool
pub fn is_handle_of<C: ErrorCategory>(&self) -> bool
Check whether this handle is a handle of the ErrorCategory
C
.
Trait Implementations§
Source§impl Debug for ErrorCategoryHandle
impl Debug for ErrorCategoryHandle
Source§impl PartialEq for ErrorCategoryHandle
impl PartialEq for ErrorCategoryHandle
impl Eq for ErrorCategoryHandle
Auto Trait Implementations§
impl Freeze for ErrorCategoryHandle
impl RefUnwindSafe for ErrorCategoryHandle
impl Send for ErrorCategoryHandle
impl Sync for ErrorCategoryHandle
impl Unpin for ErrorCategoryHandle
impl UnwindSafe for ErrorCategoryHandle
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