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§