pub struct ArenaObject { /* private fields */ }
Implementations§
Source§impl ArenaObject
impl ArenaObject
pub fn object(&self) -> &Object<ArenaBase>
pub fn from_allocator(alloc: ArenaAllocator) -> Result<Self>
pub fn from_objid(id: ObjID) -> Result<Self>
pub fn new(builder: ObjectBuilder<ArenaBase>) -> Result<Self>
pub fn into_tx(self) -> Result<TxObject<ArenaBase>>
pub fn as_tx(&self) -> Result<TxObject<ArenaBase>>
pub fn allocator(&self) -> ArenaAllocator
pub fn alloc<T>(&self, value: T) -> Result<OwnedGlobalPtr<T, ArenaAllocator>>
pub fn alloc_inplace<T>( &self, f: impl FnOnce(RefMut<'_, MaybeUninit<T>>) -> Result<RefMut<'_, T>>, ) -> Result<OwnedGlobalPtr<T, ArenaAllocator>>
Trait Implementations§
Source§impl AsRef<ObjectHandle> for ArenaObject
impl AsRef<ObjectHandle> for ArenaObject
Source§fn as_ref(&self) -> &ObjectHandle
fn as_ref(&self) -> &ObjectHandle
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for ArenaObject
impl !ObjSafe for ArenaObject
impl RefUnwindSafe for ArenaObject
impl Send for ArenaObject
impl StoreCopy for ArenaObject
impl Sync for ArenaObject
impl Unpin for ArenaObject
impl UnwindSafe for ArenaObject
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