pub struct RefMut<'obj, T> { /* private fields */ }
Implementations§
Source§impl<'obj, T> RefMut<'obj, T>
impl<'obj, T> RefMut<'obj, T>
pub fn raw(&self) -> *mut T
pub unsafe fn from_raw_parts(ptr: *mut T, handle: &'obj ObjectHandle) -> Self
pub fn from_handle(handle: ObjectHandle, ptr: *mut T) -> Self
pub unsafe fn from_ptr(ptr: *mut T) -> Self
pub unsafe fn cast<U>(self) -> RefMut<'obj, U>
pub fn handle(&self) -> &ObjectHandle
pub fn offset(&self) -> u64
pub fn global(&self) -> GlobalPtr<T>
pub fn owned<'b>(self) -> RefMut<'b, T>
pub fn as_ref(&self) -> Ref<'obj, T>
pub fn into_ref(self) -> Ref<'obj, T>
Trait Implementations§
Source§impl<'a, T> AsRef<ObjectHandle> for RefMut<'a, T>
impl<'a, T> AsRef<ObjectHandle> for RefMut<'a, T>
Source§fn as_ref(&self) -> &ObjectHandle
fn as_ref(&self) -> &ObjectHandle
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'a, T> BorrowMut<T> for RefMut<'a, T>
impl<'a, T> BorrowMut<T> for RefMut<'a, T>
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<'a, T> Into<ObjectHandle> for &RefMut<'a, T>
impl<'a, T> Into<ObjectHandle> for &RefMut<'a, T>
Source§fn into(self) -> ObjectHandle
fn into(self) -> ObjectHandle
Converts this type into the (usually inferred) input type.
Source§impl<'a, T> Into<ObjectHandle> for RefMut<'a, T>
impl<'a, T> Into<ObjectHandle> for RefMut<'a, T>
Source§fn into(self) -> ObjectHandle
fn into(self) -> ObjectHandle
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl<'obj, T> !Freeze for RefMut<'obj, T>
impl<'obj, T> !ObjSafe for RefMut<'obj, T>
impl<'obj, T> !RefUnwindSafe for RefMut<'obj, T>
impl<'obj, T> !Send for RefMut<'obj, T>
impl<'obj, T> StoreCopy for RefMut<'obj, T>where
T: StoreCopy,
impl<'obj, T> !Sync for RefMut<'obj, T>
impl<'obj, T> Unpin for RefMut<'obj, T>
impl<'obj, T> !UnwindSafe for RefMut<'obj, T>
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