pub struct OpaqueVal {
pub type_id: TypeId,
pub payload: Box<dyn Any>,
}Expand description
An opaque handle (FFI values, abstract types). Identity — for eq,
compare, and hash under the opaque strategy — is the address of
the containing allocation, so two handles are equal iff they are the
same allocation.
Fields§
§type_id: TypeId§payload: Box<dyn Any>Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpaqueVal
impl !RefUnwindSafe for OpaqueVal
impl !Send for OpaqueVal
impl !Sync for OpaqueVal
impl Unpin for OpaqueVal
impl UnsafeUnpin for OpaqueVal
impl !UnwindSafe for OpaqueVal
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