pub struct ArenaRef<T> { /* private fields */ }Implementations§
Source§impl<T> ArenaRef<T>
impl<T> ArenaRef<T>
pub fn new(arena: &Arena, value: T) -> Option<Self>
pub unsafe fn from_offset(offset: usize) -> Self
pub fn offset(&self) -> usize
pub unsafe fn get<'a>(&self, arena: &'a Arena) -> &'a T
pub unsafe fn get_mut<'a>(&self, arena: &'a Arena) -> &'a mut T
pub unsafe fn write(&self, arena: &Arena, value: T)
pub unsafe fn read(&self, arena: &Arena) -> Twhere
T: Copy,
Trait Implementations§
impl<T> Copy for ArenaRef<T>
impl<T: Send> Send for ArenaRef<T>
impl<T: Sync> Sync for ArenaRef<T>
Auto Trait Implementations§
impl<T> Freeze for ArenaRef<T>
impl<T> RefUnwindSafe for ArenaRef<T>where
T: RefUnwindSafe,
impl<T> Unpin for ArenaRef<T>where
T: Unpin,
impl<T> UnsafeUnpin for ArenaRef<T>
impl<T> UnwindSafe for ArenaRef<T>where
T: UnwindSafe,
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