[][src]Trait ra_ap_hir::HasSource

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

Associated Types

type Ast

Loading content...

Required methods

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

Loading content...

Implementors

impl HasSource for Const[src]

type Ast = Const

impl HasSource for Enum[src]

type Ast = Enum

impl HasSource for EnumVariant[src]

type Ast = Variant

impl HasSource for Field[src]

impl HasSource for Function[src]

type Ast = Fn

impl HasSource for ImplDef[src]

type Ast = Impl

impl HasSource for MacroDef[src]

type Ast = MacroCall

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

Loading content...