Trait ra_ap_hir_expand::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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Lookup for SyntaxContextId

§

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

§

type Data = SyntaxContextData

source§

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

Implementors§