pub struct Ref<'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§
Trait Implementations§
Auto Trait Implementations§
impl<'a, P> Freeze for Ref<'a, P>
impl<'a, P> RefUnwindSafe for Ref<'a, P>
impl<'a, P> !Send for Ref<'a, P>
impl<'a, P> !Sync for Ref<'a, P>
impl<'a, P> Unpin for Ref<'a, P>
impl<'a, P> UnwindSafe for Ref<'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