Lines Matching refs:ErrorImpl
218 let inner: Box<ErrorImpl<E>> = Box::new(ErrorImpl { in construct()
229 let inner = Own::new(inner).cast::<ErrorImpl>(); in construct()
350 unsafe { ErrorImpl::backtrace(self.inner.by_ref()) } in backtrace()
377 unsafe { ErrorImpl::chain(self.inner.by_ref()) } in chain()
530 unsafe { ErrorImpl::error(self.inner.by_ref()) } in deref()
538 unsafe { ErrorImpl::error_mut(self.inner.by_mut()) } in deref_mut()
544 unsafe { ErrorImpl::display(self.inner.by_ref(), formatter) } in fmt()
550 unsafe { ErrorImpl::debug(self.inner.by_ref(), formatter) } in fmt()
564 object_drop: unsafe fn(Own<ErrorImpl>),
565 object_ref: unsafe fn(Ref<ErrorImpl>) -> Ref<dyn StdError + Send + Sync + 'static>,
567 object_mut: unsafe fn(Mut<ErrorImpl>) -> &mut (dyn StdError + Send + Sync + 'static),
568 object_boxed: unsafe fn(Own<ErrorImpl>) -> Box<dyn StdError + Send + Sync + 'static>,
569 object_downcast: unsafe fn(Ref<ErrorImpl>, TypeId) -> Option<Ref<()>>,
571 object_downcast_mut: unsafe fn(Mut<ErrorImpl>, TypeId) -> Option<Mut<()>>,
572 object_drop_rest: unsafe fn(Own<ErrorImpl>, TypeId),
574 object_backtrace: unsafe fn(Ref<ErrorImpl>) -> Option<&Backtrace>,
578 unsafe fn object_drop<E>(e: Own<ErrorImpl>) { in object_drop() argument
581 let unerased = e.cast::<ErrorImpl<E>>().boxed(); in object_drop()
586 unsafe fn object_drop_front<E>(e: Own<ErrorImpl>, target: TypeId) { in object_drop_front() argument
591 let unerased = e.cast::<ErrorImpl<ManuallyDrop<E>>>().boxed(); in object_drop_front()
596 unsafe fn object_ref<E>(e: Ref<ErrorImpl>) -> Ref<dyn StdError + Send + Sync + 'static> in object_ref()
602 let unerased = e.cast::<ErrorImpl<E>>(); in object_ref()
616 unsafe fn object_mut<E>(e: Mut<ErrorImpl>) -> &mut (dyn StdError + Send + Sync + 'static) in object_mut()
621 &mut e.cast::<ErrorImpl<E>>().deref_mut()._object in object_mut()
625 unsafe fn object_boxed<E>(e: Own<ErrorImpl>) -> Box<dyn StdError + Send + Sync + 'static> in object_boxed()
630 e.cast::<ErrorImpl<E>>().boxed() in object_boxed()
634 unsafe fn object_downcast<E>(e: Ref<ErrorImpl>, target: TypeId) -> Option<Ref<()>> in object_downcast() argument
642 let unerased = e.cast::<ErrorImpl<E>>(); in object_downcast()
661 unsafe fn object_downcast_mut<E>(e: Mut<ErrorImpl>, target: TypeId) -> Option<Mut<()>> in object_downcast_mut() argument
668 let unerased = e.cast::<ErrorImpl<E>>().deref_mut(); in object_downcast_mut()
676 fn no_backtrace(e: Ref<ErrorImpl>) -> Option<&Backtrace> { in no_backtrace()
683 unsafe fn context_downcast<C, E>(e: Ref<ErrorImpl>, target: TypeId) -> Option<Ref<()>> in context_downcast() argument
689 let unerased = e.cast::<ErrorImpl<ContextError<C, E>>>().deref(); in context_downcast()
692 let unerased = e.cast::<ErrorImpl<ContextError<C, E>>>().deref(); in context_downcast()
701 unsafe fn context_downcast_mut<C, E>(e: Mut<ErrorImpl>, target: TypeId) -> Option<Mut<()>> in context_downcast_mut() argument
707 let unerased = e.cast::<ErrorImpl<ContextError<C, E>>>().deref_mut(); in context_downcast_mut()
710 let unerased = e.cast::<ErrorImpl<ContextError<C, E>>>().deref_mut(); in context_downcast_mut()
719 unsafe fn context_drop_rest<C, E>(e: Own<ErrorImpl>, target: TypeId) in context_drop_rest() argument
728 .cast::<ErrorImpl<ContextError<ManuallyDrop<C>, E>>>() in context_drop_rest()
733 .cast::<ErrorImpl<ContextError<C, ManuallyDrop<E>>>>() in context_drop_rest()
740 unsafe fn context_chain_downcast<C>(e: Ref<ErrorImpl>, target: TypeId) -> Option<Ref<()>> in context_chain_downcast() argument
745 let unerased = e.cast::<ErrorImpl<ContextError<C, Error>>>().deref(); in context_chain_downcast()
749 let unerased = e.cast::<ErrorImpl<ContextError<C, Error>>>().deref(); in context_chain_downcast()
757 unsafe fn context_chain_downcast_mut<C>(e: Mut<ErrorImpl>, target: TypeId) -> Option<Mut<()>> in context_chain_downcast_mut() argument
762 let unerased = e.cast::<ErrorImpl<ContextError<C, Error>>>().deref_mut(); in context_chain_downcast_mut()
766 let unerased = e.cast::<ErrorImpl<ContextError<C, Error>>>().deref_mut(); in context_chain_downcast_mut()
773 unsafe fn context_chain_drop_rest<C>(e: Own<ErrorImpl>, target: TypeId) in context_chain_drop_rest() argument
781 .cast::<ErrorImpl<ContextError<ManuallyDrop<C>, Error>>>() in context_chain_drop_rest()
787 .cast::<ErrorImpl<ContextError<C, ManuallyDrop<Error>>>>() in context_chain_drop_rest()
801 unsafe fn context_backtrace<C>(e: Ref<ErrorImpl>) -> Option<&Backtrace> in context_backtrace()
805 let unerased = e.cast::<ErrorImpl<ContextError<C, Error>>>().deref(); in context_backtrace()
806 let backtrace = ErrorImpl::backtrace(unerased._object.error.inner.by_ref()); in context_backtrace()
814 pub(crate) struct ErrorImpl<E = ()> { struct
824 unsafe fn vtable(p: NonNull<ErrorImpl>) -> &'static ErrorVTable { in vtable() argument
837 impl<E> ErrorImpl<E> { implementation
838 fn erase(&self) -> Ref<ErrorImpl> { in erase() argument
842 Ref::new(self).cast::<ErrorImpl>() in erase()
846 impl ErrorImpl { impl
889 impl<E> StdError for ErrorImpl<E> implementation
895 Some(unsafe { ErrorImpl::backtrace(self.erase()) }) in backtrace()
899 unsafe { ErrorImpl::error(self.erase()).source() } in source()
903 impl<E> Debug for ErrorImpl<E> implementation
908 unsafe { ErrorImpl::debug(self.erase(), formatter) } in fmt()
912 impl<E> Display for ErrorImpl<E> implementation
917 unsafe { Display::fmt(ErrorImpl::error(self.erase()), formatter) } in fmt()