Skip to main content

HasChildSource

Trait HasChildSource 

Source
pub trait HasChildSource<ChildId> {
    type Value;

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

Required Associated Types§

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

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<TypeOrConstParamData>> for GenericDefId

Source§

type Value = Either<TypeOrConstParam, Trait>

Source§

impl HasChildSource<Idx<UseTree>> for UseId

Source§

type Value = UseTree