#[repr(C)]pub struct TxObject<T = ()> { /* private fields */ }
Implementations§
Source§impl TxObject<ArenaBase>
impl TxObject<ArenaBase>
pub fn alloc<T>( &mut self, value: T, ) -> Result<OwnedGlobalPtr<T, ArenaAllocator>>
pub fn alloc_inplace<T>( &mut self, f: impl FnOnce(RefMut<'_, MaybeUninit<T>>) -> Result<RefMut<'_, T>>, ) -> Result<OwnedGlobalPtr<T, ArenaAllocator>>
pub fn allocator(&self) -> ArenaAllocator
Source§impl<T> TxObject<T>
impl<T> TxObject<T>
pub fn new(object: Object<T>) -> Result<Self>
pub fn commit(&mut self) -> Result<()>
pub fn abort(&mut self)
pub fn into_object(self) -> Result<Object<T>>
pub fn base_mut(&mut self) -> RefMut<'_, T>
pub unsafe fn cast<U>(self) -> TxObject<U>
pub fn into_unit(self) -> TxObject<()>
pub fn as_mut(&mut self) -> &mut MutObject<T>
pub fn as_ref(&mut self) -> &MutObject<T>
pub fn into_handle(self) -> ObjectHandle
Source§impl<B> TxObject<MaybeUninit<B>>
impl<B> TxObject<MaybeUninit<B>>
pub fn write(self, baseval: B) -> Result<TxObject<B>>
pub unsafe fn assume_init(self) -> TxObject<B>
pub fn static_alloc_inplace<T>( &mut self, f: impl FnOnce(&mut MaybeUninit<T>) -> Result<&mut T>, ) -> Result<GlobalPtr<T>>
pub fn static_alloc<T>(&mut self, value: T) -> Result<GlobalPtr<T>>
Trait Implementations§
Source§impl<B> AsRef<ObjectHandle> for TxObject<B>
impl<B> AsRef<ObjectHandle> for TxObject<B>
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<B> Into<ObjectHandle> for &TxObject<B>
impl<B> Into<ObjectHandle> for &TxObject<B>
Source§fn into(self) -> ObjectHandle
fn into(self) -> ObjectHandle
Converts this type into the (usually inferred) input type.
Source§impl<B> Into<ObjectHandle> for TxObject<B>
impl<B> Into<ObjectHandle> for TxObject<B>
Source§fn into(self) -> ObjectHandle
fn into(self) -> ObjectHandle
Converts this type into the (usually inferred) input type.
Source§impl<T> RawObject for TxObject<T>
impl<T> RawObject for TxObject<T>
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.
Auto Trait Implementations§
impl<T> Freeze for TxObject<T>
impl<T = ()> !ObjSafe for TxObject<T>
impl<T> RefUnwindSafe for TxObject<T>where
T: RefUnwindSafe,
impl<T> Send for TxObject<T>
impl<T> StoreCopy for TxObject<T>where
T: StoreCopy,
impl<T> Sync for TxObject<T>
impl<T> Unpin for TxObject<T>
impl<T> UnwindSafe for TxObject<T>where
T: 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