[][src]Trait ra_ap_hir::HasSource

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

Associated Types

Loading content...

Required methods

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

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]

type Ast = FieldSource

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...