rustc_query_system::dep_graph

Trait HasDepContext

source
pub trait HasDepContext: Copy {
    type Deps: Deps;
    type DepContext: DepContext<Deps = Self::Deps>;

    // Required method
    fn dep_context(&self) -> &Self::DepContext;
}

Required Associated Types§

Required Methods§

source

fn dep_context(&self) -> &Self::DepContext

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.

Implementations on Foreign Types§

source§

impl<T: HasDepContext, Q: Copy> HasDepContext for (T, Q)

Implementors§