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