pub trait HasChildSource<ChildId> {
    type Value;

    // Required method
    fn child_source(
        &self,
        db: &dyn DefDatabase
    ) -> InFile<ArenaMap<ChildId, Self::Value>>;
}

Required Associated Types§

Required Methods§

source

fn child_source( &self, db: &dyn DefDatabase ) -> InFile<ArenaMap<ChildId, Self::Value>>

Implementors§

source§

impl HasChildSource<Idx<TypeOrConstParamData>> for GenericDefId

§

type Value = Either<TypeOrConstParam, TraitOrAlias>

source§

impl HasChildSource<Idx<FieldData>> for VariantId

§

type Value = Either<TupleField, RecordField>

source§

impl HasChildSource<Idx<LifetimeParamData>> for GenericDefId

§

type Value = LifetimeParam

source§

impl HasChildSource<Idx<UseTree>> for UseId

§

type Value = UseTree