Enum ra_ap_ide_db::defs::NameRefClass [−][src]
pub enum NameRefClass { ExternCrate(Crate), Definition(Definition), FieldShorthand { local_ref: Local, field_ref: Definition, }, }
Variants
ExternCrate(Crate)
Definition(Definition)
Show fields
Fields of FieldShorthand
local_ref: Local
field_ref: Definition
Implementations
impl NameRefClass
[src]
impl NameRefClass
[src]pub fn referenced(self, db: &dyn HirDatabase) -> Definition
[src]
pub fn referenced(self, db: &dyn HirDatabase) -> Definition
[src]Definition
, which this name refers to.
pub fn classify(
sema: &Semantics<'_, RootDatabase>,
name_ref: &NameRef
) -> Option<NameRefClass>
[src]
sema: &Semantics<'_, RootDatabase>,
name_ref: &NameRef
) -> Option<NameRefClass>
pub fn classify_lifetime(
sema: &Semantics<'_, RootDatabase>,
lifetime: &Lifetime
) -> Option<NameRefClass>
[src]
sema: &Semantics<'_, RootDatabase>,
lifetime: &Lifetime
) -> Option<NameRefClass>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NameRefClass
impl Send for NameRefClass
impl Sync for NameRefClass
impl Unpin for NameRefClass
impl UnwindSafe for NameRefClass
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T
impl<T> Cast for T
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Any for T where
T: Any,
T: Any,