Enum ra_ap_ide_db::defs::IdentClass
source · pub enum IdentClass {
NameClass(NameClass),
NameRefClass(NameRefClass),
Operator(OperatorClass),
}
Variants§
Implementations§
source§impl IdentClass
impl IdentClass
pub fn classify_node( sema: &Semantics<'_, RootDatabase>, node: &SyntaxNode ) -> Option<IdentClass>
pub fn classify_token( sema: &Semantics<'_, RootDatabase>, token: &SyntaxToken ) -> Option<IdentClass>
pub fn classify_lifetime( sema: &Semantics<'_, RootDatabase>, lifetime: &Lifetime ) -> Option<IdentClass>
pub fn definitions(self) -> ArrayVec<Definition, 2>
pub fn definitions_no_ops(self) -> ArrayVec<Definition, 2>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IdentClass
impl RefUnwindSafe for IdentClass
impl Send for IdentClass
impl Sync for IdentClass
impl Unpin for IdentClass
impl UnwindSafe for IdentClass
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.