Trait ra_ap_hir::HasSource[][src]

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

Associated Types

Required methods

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

Implementors

impl HasSource for Const[src]

type Ast = Const

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

impl HasSource for ConstParam[src]

type Ast = ConstParam

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

impl HasSource for Enum[src]

type Ast = Enum

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

impl HasSource for Field[src]

type Ast = FieldSource

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

impl HasSource for Function[src]

type Ast = Fn

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

impl HasSource for Impl[src]

type Ast = Impl

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

impl HasSource for LifetimeParam[src]

type Ast = LifetimeParam

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

impl HasSource for MacroDef[src]

type Ast = Either<Macro, Fn>

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

impl HasSource for Static[src]

type Ast = Static

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

impl HasSource for Struct[src]

type Ast = Struct

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

impl HasSource for Trait[src]

type Ast = Trait

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

impl HasSource for TypeAlias[src]

type Ast = TypeAlias

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

impl HasSource for TypeParam[src]

type Ast = Either<Trait, TypeParam>

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

impl HasSource for Union[src]

type Ast = Union

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

impl HasSource for Variant[src]

type Ast = Variant

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