pub trait ArenaAllocatable<'tcx, C = IsNotCopy>: Sized {
// Required methods
fn allocate_on(self, arena: &'tcx Arena<'tcx>) -> &'tcx mut Self;
fn allocate_from_iter(
arena: &'tcx Arena<'tcx>,
iter: impl IntoIterator<Item = Self>,
) -> &'tcx mut [Self];
}
Required Methods§
fn allocate_on(self, arena: &'tcx Arena<'tcx>) -> &'tcx mut Self
fn allocate_from_iter( arena: &'tcx Arena<'tcx>, iter: impl IntoIterator<Item = Self>, ) -> &'tcx mut [Self]
Object Safety§
This trait is not object safe.