pub struct RefMut<'a, P>where
P: OpaquePtr,{ /* private fields */ }
Expand description
Represents a pointer to a type that is owned by some C++ object, where the pointer type is also newtyped and we wish to Deref to the newtype rather than the pointer.
Implementations§
Source§impl<'a, P> RefMut<'a, P>where
P: OpaquePtr,
impl<'a, P> RefMut<'a, P>where
P: OpaquePtr,
pub fn new(ptr: *mut P::SysPointee) -> RefMut<'a, P>
pub fn as_ptr(&self) -> *const P::SysPointee
pub fn as_mut_ptr(&mut self) -> *mut P::SysPointee
Trait Implementations§
Auto Trait Implementations§
impl<'a, P> Freeze for RefMut<'a, P>
impl<'a, P> RefUnwindSafe for RefMut<'a, P>
impl<'a, P> !Send for RefMut<'a, P>
impl<'a, P> !Sync for RefMut<'a, P>
impl<'a, P> Unpin for RefMut<'a, P>
impl<'a, P> UnwindSafe for RefMut<'a, P>
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