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]
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.