pub trait ExtraBackendMethods:
Send
+ Sync
+ DynSend
+ DynSync {
type Module;
// Required methods
fn codegen_allocator<'tcx>(
&self,
tcx: TyCtxt<'tcx>,
module_name: &str,
methods: &[AllocatorMethod],
) -> Self::Module;
fn compile_codegen_unit(
&self,
tcx: TyCtxt<'_>,
cgu_name: Symbol,
) -> (ModuleCodegen<Self::Module>, u64);
}Required Associated Types§
Required Methods§
fn codegen_allocator<'tcx>( &self, tcx: TyCtxt<'tcx>, module_name: &str, methods: &[AllocatorMethod], ) -> Self::Module
Sourcefn compile_codegen_unit(
&self,
tcx: TyCtxt<'_>,
cgu_name: Symbol,
) -> (ModuleCodegen<Self::Module>, u64)
fn compile_codegen_unit( &self, tcx: TyCtxt<'_>, cgu_name: Symbol, ) -> (ModuleCodegen<Self::Module>, u64)
This generates the codegen unit and returns it along with
a u64 giving an estimate of the unit’s processing cost.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".