Searched refs:SharedPtr (Results 1 – 3 of 3) sorted by relevance
| /wasmtime-44.0.1/crates/core/src/error/ |
| H A D | ptr.rs | 56 pub(crate) struct SharedPtr<'a, T> struct 64 impl<'a, T> core::fmt::Debug for SharedPtr<'a, T> implementation 73 impl<T> Clone for SharedPtr<'_, T> implementation 82 impl<'a, T> SharedPtr<'a, T> implementation 87 SharedPtr { in new() 93 pub(crate) fn cast<U>(self) -> SharedPtr<'a, U> { in cast() 94 SharedPtr::new(self.ptr.cast()) in cast() 106 impl<T> Copy for SharedPtr<'_, T> where T: ?Sized {} implementation
|
| H A D | vtable.rs | 1 use crate::error::ptr::{MutPtr, OwnedPtr, SharedPtr}; 26 pub(crate) display: unsafe fn(SharedPtr<'_, DynError>, &mut fmt::Formatter<'_>) -> fmt::Result, 27 pub(crate) debug: unsafe fn(SharedPtr<'_, DynError>, &mut fmt::Formatter<'_>) -> fmt::Result, 28 pub(crate) source: unsafe fn(SharedPtr<'_, DynError>) -> Option<&Error>, 30 pub(crate) is: unsafe fn(SharedPtr<'_, DynError>, TypeId) -> bool, 32 unsafe fn(SharedPtr<'_, DynError>) -> &(dyn core::error::Error + Send + Sync + 'static), 74 unsafe fn display<E>(error: SharedPtr<'_, DynError>, f: &mut fmt::Formatter<'_>) -> fmt::Result in display() 84 unsafe fn debug<E>(error: SharedPtr<'_, DynError>, f: &mut fmt::Formatter<'_>) -> fmt::Result in debug() 94 unsafe fn source<E>(error: SharedPtr<'_, DynError>) -> Option<&Error> in source() 114 unsafe fn is<E>(error: SharedPtr<'_, DynError>, type_id: TypeId) -> bool in is() [all …]
|
| H A D | error.rs | 3 use super::ptr::{MutPtr, OwnedPtr, SharedPtr}; 1494 DynError(SharedPtr<'a, DynError>), 1635 unsafe fn unchecked_dyn_error_ref(&self) -> SharedPtr<'_, DynError> { in unchecked_dyn_error_ref() 1637 SharedPtr::new(self.inner.cast::<DynError>()) in unchecked_dyn_error_ref() 1832 struct DebugError<'a>(SharedPtr<'a, DynError>); in debug()
|