Trait Lookup

Source
pub trait Lookup {
    type Database: ?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

Implementations on Foreign Types§

Source§

impl Lookup for MacroCallId

Source§

type Database = dyn ExpandDatabase

Source§

type Data = MacroCallLoc

Source§

fn lookup( &self, db: &<MacroCallId as Lookup>::Database, ) -> <MacroCallId as Lookup>::Data

Implementors§

Source§

impl Lookup for BlockId

Source§

impl Lookup for ConstBlockId

Source§

impl Lookup for ConstId

Source§

impl Lookup for EnumId

Source§

impl Lookup for EnumVariantId

Source§

impl Lookup for ExternBlockId

Source§

impl Lookup for ExternCrateId

Source§

impl Lookup for FunctionId

Source§

impl Lookup for ImplId

Source§

impl Lookup for InTypeConstId

Source§

impl Lookup for Macro2Id

Source§

impl Lookup for MacroRulesId

Source§

impl Lookup for ProcMacroId

Source§

impl Lookup for StaticId

Source§

impl Lookup for StructId

Source§

impl Lookup for TraitAliasId

Source§

impl Lookup for TraitId

Source§

impl Lookup for TypeAliasId

Source§

impl Lookup for UnionId

Source§

impl Lookup for UseId