pub trait Alloc<'a, 't, T: 't> {
fn alloc(&'a self, value: T) -> &'t mut T;
}
Expand description
Allocate a value of type T
.
impl<'z, 'a, 'p: 'a, 't, T: 't> Alloc<'z, 't, T> for &'p dyn Alloc<'a, 't, T>
Allocate a value of type T
.
Allocate a value of type T: ToOwned
into this arena. Read more
Conditionally allocate a value of type Cow<T>
. Read more
Forcefully allocate a value of type Cow<T>
. Read more
impl<'a, 't> Alloc<'a, 'a, Slot<'t, ConstDecl<'t>>> for Arenas2<'t> where
't: 'a,
impl<'z, 'a, 'p: 'a, 't, T: 't> Alloc<'z, 't, T> for &'p dyn Alloc<'a, 't, T>