Trait ra_ap_hir::HasSource[][src]

pub trait HasSource {
    type Ast;
    fn source(self, db: &dyn HirDatabase) -> Option<InFile<Self::Ast>>;
}

Associated Types

Loading content...

Required methods

fn source(self, db: &dyn HirDatabase) -> Option<InFile<Self::Ast>>[src]

Loading content...

Implementors

impl HasSource for Const[src]

type Ast = Const

impl HasSource for ConstParam[src]

type Ast = ConstParam

impl HasSource for Enum[src]

type Ast = Enum

impl HasSource for Field[src]

type Ast = FieldSource

impl HasSource for Function[src]

type Ast = Fn

impl HasSource for Impl[src]

type Ast = Impl

impl HasSource for LifetimeParam[src]

type Ast = LifetimeParam

impl HasSource for MacroDef[src]

type Ast = Either<Macro, Fn>

impl HasSource for Static[src]

type Ast = Static

impl HasSource for Struct[src]

type Ast = Struct

impl HasSource for Trait[src]

type Ast = Trait

impl HasSource for TypeAlias[src]

type Ast = TypeAlias

impl HasSource for TypeParam[src]

type Ast = Either<Trait, TypeParam>

impl HasSource for Union[src]

type Ast = Union

impl HasSource for Variant[src]

type Ast = Variant

Loading content...