pub struct Opaque<T>(/* private fields */);Expand description
A wrapper for types that are opaque to Rust.
This is used to wrap C++ objects that Rust should not access directly. It provides a raw pointer to the inner data for use in FFI.
Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Opaque<T>
impl<T> !RefUnwindSafe for Opaque<T>
impl<T> Send for Opaque<T>where
T: Send,
impl<T> !Sync for Opaque<T>
impl<T> Unpin for Opaque<T>where
T: Unpin,
impl<T> UnsafeUnpin for Opaque<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Opaque<T>where
T: UnwindSafe,
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