Skip to main content

HasStaticRootDefId

Trait HasStaticRootDefId 

Source
pub trait HasStaticRootDefId {
    // Required method
    fn static_def_id(&self) -> Option<LocalDefId>;
}

Required Methods§

Source

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§