Trait hir_def::src::HasChildSource

source ·
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

source§

type Value = Either<TypeOrConstParam, TraitOrAlias>

source§

impl HasChildSource<Idx<FieldData>> for VariantId

source§

type Value = Either<TupleField, RecordField>

source§

impl HasChildSource<Idx<LifetimeParamData>> for GenericDefId

source§

type Value = LifetimeParam

source§

impl HasChildSource<Idx<UseTree>> for UseId

source§

type Value = UseTree