Enum relm4::MicroComponentError
source · [−]pub enum MicroComponentError {
Borrow(BorrowError),
BorrowMut(BorrowMutError),
}
Expand description
Errors which might get returned from MicroComponent::update_view
method
Both std::fmt::Display
and std::fmt::Debug
are implemented for this
enum so if you just would like to show an error you don’t need to do the
matching.
Variants
Borrow(BorrowError)
Error returned if borrow failed
BorrowMut(BorrowMutError)
Error returned if borrowing mutably failed
Trait Implementations
sourceimpl Debug for MicroComponentError
impl Debug for MicroComponentError
sourceimpl Display for MicroComponentError
impl Display for MicroComponentError
Formats MicroComponentError
for empty format {}
This allows you to print errors without doing matching
or if let
statements
sourceimpl From<BorrowError> for MicroComponentError
impl From<BorrowError> for MicroComponentError
Helper to convert values of std::cell::BorrowError
into MicroComponentError
sourcefn from(err: BorrowError) -> Self
fn from(err: BorrowError) -> Self
Converts to this type from the input type.
sourceimpl From<BorrowMutError> for MicroComponentError
impl From<BorrowMutError> for MicroComponentError
Helper to convert values of std::cell::BorrowMutError
into MicroComponentError
sourcefn from(err: BorrowMutError) -> Self
fn from(err: BorrowMutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for MicroComponentError
impl Send for MicroComponentError
impl Sync for MicroComponentError
impl Unpin for MicroComponentError
impl UnwindSafe for MicroComponentError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more