pub struct UIError {
pub inner: Rc<dyn UIErrorTrait>,
}Fields§
§inner: Rc<dyn UIErrorTrait>Implementations§
source§impl UIError
impl UIError
sourcepub fn downcast_ref<T: UIErrorTrait>(&self) -> Option<&T>
pub fn downcast_ref<T: UIErrorTrait>(&self) -> Option<&T>
Helper for downcasting into the internal error type
Due to how finnicky this is to get right, with coercing the Rc
Trait Implementations§
source§impl<E: UIErrorTrait> From<E> for UIError
impl<E: UIErrorTrait> From<E> for UIError
Auto Trait Implementations§
impl !RefUnwindSafe for UIError
impl !Send for UIError
impl !Sync for UIError
impl Unpin for UIError
impl !UnwindSafe for UIError
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