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

Object Safety§

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§