[−][src]Enum ra_ap_ide_db::defs::Definition
Variants
Macro(MacroDef)
Field(Field)
ModuleDef(ModuleDef)
SelfType(ImplDef)
Local(Local)
TypeParam(TypeParam)
Implementations
impl Definition
[src]
pub fn module(&self, db: &RootDatabase) -> Option<Module>
[src]
pub fn visibility(&self, db: &RootDatabase) -> Option<Visibility>
[src]
pub fn name(&self, db: &RootDatabase) -> Option<Name>
[src]
impl Definition
[src]
pub fn usages<'a>(
&'a self,
sema: &'a Semantics<'_, RootDatabase>
) -> FindUsages<'a>
[src]
&'a self,
sema: &'a Semantics<'_, RootDatabase>
) -> FindUsages<'a>
Trait Implementations
impl Clone for Definition
[src]
fn clone(&self) -> Definition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Definition
[src]
impl Debug for Definition
[src]
impl Eq for Definition
[src]
impl From<PathResolution> for Definition
[src]
fn from(path_resolution: PathResolution) -> Self
[src]
impl PartialEq<Definition> for Definition
[src]
fn eq(&self, other: &Definition) -> bool
[src]
fn ne(&self, other: &Definition) -> bool
[src]
impl StructuralEq for Definition
[src]
impl StructuralPartialEq for Definition
[src]
Auto Trait Implementations
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Self: CastTo<U>,
U: HasInterner,
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,