pub trait StaticCodegenMethods: BackendTypes {
// Required methods
fn static_addr_of(
&self,
alloc: ConstAllocation<'_>,
kind: Option<&str>,
) -> Self::Value;
fn codegen_static(&mut self, def_id: DefId);
}Required Methods§
fn static_addr_of( &self, alloc: ConstAllocation<'_>, kind: Option<&str>, ) -> Self::Value
fn codegen_static(&mut self, def_id: DefId)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".