Trait rustc_const_eval::interpret::intern::HasStaticRootDefId
source · pub trait HasStaticRootDefId {
// Required method
fn static_def_id(&self) -> Option<LocalDefId>;
}
Required Methods§
sourcefn static_def_id(&self) -> Option<LocalDefId>
fn static_def_id(&self) -> Option<LocalDefId>
Returns the DefId
of the static item that is currently being evaluated.
Used for interning to be able to handle nested allocations.