hir_expand

Trait Lookup

Source
pub trait Lookup {
    type Database<'db>: ?Sized;
    type Data;

    // Required method
    fn lookup(&self, db: &Self::Database<'_>) -> Self::Data;
}

Required Associated Types§

Required Methods§

Source

fn lookup(&self, db: &Self::Database<'_>) -> Self::Data

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 Lookup for SyntaxContextId

Source§

type Database<'db> = dyn ExpandDatabase + 'db

Source§

type Data = SyntaxContextData

Source§

fn lookup(&self, db: &Self::Database<'_>) -> SyntaxContextData

Implementors§