Struct mc_core::util::OpaquePtr [−][src]
#[repr(transparent)]pub struct OpaquePtr<T>(_);Expand description
This structure can be used to store a statically bound reference &'static T in a
safe wrapper that also implements Send and Sync. These traits are implemented
because the content cannot be recovered after the construction, and also because
the pointer has a static lifetime.
This opaque pointer also implements Hash and Eq to be usable as a map key.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for OpaquePtr<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for OpaquePtr<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
