Struct ObjectWrapper
pub struct ObjectWrapper(/* private fields */);Implementations§
§impl ObjectWrapper
impl ObjectWrapper
pub const fn as_ptr(&self) -> *mut ObjectWrapper
pub fn get_native(&self) -> Result<NonNull<c_void>, Error>
pub fn get_native(&self) -> Result<NonNull<c_void>, Error>
Gets a pointer to the backing C++ instance.
pub fn is_stale(&self) -> bool
§impl ObjectWrapper
impl ObjectWrapper
pub fn try_create_reference(&self) -> Result<Option<ObjectReference>, Error>
Trait Implementations§
§impl Clone for ObjectWrapper
impl Clone for ObjectWrapper
§fn clone(&self) -> ObjectWrapper
fn clone(&self) -> ObjectWrapper
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl PartialEq for ObjectWrapper
impl PartialEq for ObjectWrapper
impl Eq for ObjectWrapper
Auto Trait Implementations§
impl Freeze for ObjectWrapper
impl RefUnwindSafe for ObjectWrapper
impl !Send for ObjectWrapper
impl !Sync for ObjectWrapper
impl Unpin for ObjectWrapper
impl UnwindSafe for ObjectWrapper
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