Struct gluon_base::ast::OwnedArena
source · pub struct OwnedArena<'ast, Id>(/* private fields */);
Implementations§
source§impl<'ast, Id> OwnedArena<'ast, Id>
impl<'ast, Id> OwnedArena<'ast, Id>
pub fn borrow(&self) -> ArenaRef<'_, 'ast, Id>
pub fn alloc<T>(&self, value: T) -> &'ast mut Twhere
T: AstAlloc<'ast, Id>,
pub fn alloc_extend<T>(
&self,
iter: impl IntoIterator<Item = T>
) -> &'ast mut [T]where
T: AstAlloc<'ast, Id>,
Trait Implementations§
impl<'ast, Id> Send for OwnedArena<'ast, Id>
Auto Trait Implementations§
impl<'ast, Id> !RefUnwindSafe for OwnedArena<'ast, Id>
impl<'ast, Id> !Sync for OwnedArena<'ast, Id>
impl<'ast, Id> Unpin for OwnedArena<'ast, Id>
impl<'ast, Id> !UnwindSafe for OwnedArena<'ast, Id>
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