Skip to main content

ChildBySource

Trait ChildBySource 

Source
pub(crate) trait ChildBySource {
    // Required method
    fn child_by_source_to(
        &self,
        db: &dyn SourceDatabase,
        map: &mut DynMap,
        file_id: HirFileId,
    );

    // Provided method
    fn child_by_source(
        &self,
        db: &dyn SourceDatabase,
        file_id: HirFileId,
    ) -> DynMap { ... }
}

Required Methods§

Source

fn child_by_source_to( &self, db: &dyn SourceDatabase, map: &mut DynMap, file_id: HirFileId, )

Provided Methods§

Source

fn child_by_source(&self, db: &dyn SourceDatabase, file_id: HirFileId) -> DynMap

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ChildBySource for AttrDefId

Source§

fn child_by_source_to( &self, db: &dyn SourceDatabase, map: &mut DynMap, file_id: HirFileId, )

Source§

impl ChildBySource for DefWithBodyId

Source§

fn child_by_source_to( &self, db: &dyn SourceDatabase, res: &mut DynMap, file_id: HirFileId, )

Source§

impl ChildBySource for EnumId

Source§

fn child_by_source_to( &self, db: &dyn SourceDatabase, res: &mut DynMap, file_id: HirFileId, )

Source§

impl ChildBySource for GenericDefId

Source§

fn child_by_source_to( &self, db: &dyn SourceDatabase, res: &mut DynMap, file_id: HirFileId, )

Source§

impl ChildBySource for ImplId

Source§

fn child_by_source_to( &self, db: &dyn SourceDatabase, res: &mut DynMap, file_id: HirFileId, )

Source§

impl ChildBySource for ItemScope

Source§

fn child_by_source_to( &self, db: &dyn SourceDatabase, res: &mut DynMap, file_id: HirFileId, )

Source§

impl ChildBySource for ModuleId

Source§

fn child_by_source_to( &self, db: &dyn SourceDatabase, res: &mut DynMap, file_id: HirFileId, )

Implementors§