pub struct MutObject<Base> { /* private fields */ }
Implementations§
Source§impl<Base> MutObject<Base>
impl<Base> MutObject<Base>
pub unsafe fn from_handle_unchecked(handle: ObjectHandle) -> Self
pub fn from_handle(handle: ObjectHandle) -> Result<Self, TwzError>
pub fn into_handle(self) -> ObjectHandle
pub unsafe fn cast<U>(self) -> MutObject<U>
pub fn map(id: ObjID, flags: MapFlags) -> Result<Self, TwzError>
pub unsafe fn map_unchecked( id: ObjID, flags: MapFlags, ) -> Result<Self, TwzError>
pub fn id(&self) -> ObjID
pub fn update(&mut self) -> Result<()>
pub fn base_mut(&mut self) -> RefMut<'_, Base>
pub fn sync(&mut self) -> Result<(), TwzError>
pub fn into_object(self) -> Object<Base>
pub fn as_object(&self) -> Object<Base>
Trait Implementations§
Source§impl<T> AsRef<ObjectHandle> for MutObject<T>
impl<T> AsRef<ObjectHandle> for MutObject<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<Base> RawObject for MutObject<Base>
impl<Base> RawObject for MutObject<Base>
Source§fn handle(&self) -> &ObjectHandle
fn handle(&self) -> &ObjectHandle
Get the underlying runtime handle for this object.
Source§fn base_mut_ptr<T>(&self) -> *mut T
fn base_mut_ptr<T>(&self) -> *mut T
Get a mut pointer to the object base.
Source§fn meta_mut_ptr(&self) -> *mut MetaInfo
fn meta_mut_ptr(&self) -> *mut MetaInfo
Get a mut pointer to the object metadata.
Source§fn fote_ptr(&self, idx: usize) -> Option<*const FotEntry>
fn fote_ptr(&self, idx: usize) -> Option<*const FotEntry>
Get a const pointer to a given FOT entry.
Source§fn fote_ptr_mut(&self, idx: usize) -> Option<*mut FotEntry>
fn fote_ptr_mut(&self, idx: usize) -> Option<*mut FotEntry>
Get a mut pointer to a given FOT entry.
Source§fn lea(&self, offset: usize, _len: usize) -> Option<*const u8>
fn lea(&self, offset: usize, _len: usize) -> Option<*const u8>
Get a const pointer to given range of the object.
Source§impl<Base: BaseType> TypedObject for MutObject<Base>
impl<Base: BaseType> TypedObject for MutObject<Base>
impl<Base> Send for MutObject<Base>
impl<Base> Sync for MutObject<Base>
Auto Trait Implementations§
impl<Base> Freeze for MutObject<Base>
impl<Base> !ObjSafe for MutObject<Base>
impl<Base> RefUnwindSafe for MutObject<Base>where
Base: RefUnwindSafe,
impl<Base> StoreCopy for MutObject<Base>where
Base: StoreCopy,
impl<Base> Unpin for MutObject<Base>
impl<Base> UnwindSafe for MutObject<Base>where
Base: RefUnwindSafe,
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