ide_db::traits

Function resolve_target_trait

source
pub fn resolve_target_trait(
    sema: &Semantics<'_, RootDatabase>,
    impl_def: &Impl,
) -> Option<Trait>
Expand description

Given the impl block, attempts to find the trait this impl corresponds to.