pub enum Descriptor {
Namespace(String),
Type(String),
Term(String),
Method {
name: String,
disambiguator: String,
},
TypeParameter(String),
Parameter(String),
Meta(String),
Macro(String),
}Variants§
Namespace(String)
name/ — package, namespace, module, file.
Type(String)
name# — class, interface, trait, enum, struct.
Term(String)
name. — field, property, constant, variable.
Method
name(disambiguator). — method, constructor, function.
TypeParameter(String)
[name]
Parameter(String)
(name)
Meta(String)
name:
Macro(String)
name!
Implementations§
Source§impl Descriptor
impl Descriptor
Sourcepub fn for_kind(kind: EntityKind, name: &str) -> Descriptor
pub fn for_kind(kind: EntityKind, name: &str) -> Descriptor
Descriptor SCIP uses for an entity of kind.
pub fn name(&self) -> &str
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
Source§impl Debug for Descriptor
impl Debug for Descriptor
Source§impl Display for Descriptor
impl Display for Descriptor
impl Eq for Descriptor
Source§impl Hash for Descriptor
impl Hash for Descriptor
Source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl Forget for Descriptor
impl Freeze for Descriptor
impl Move for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptorwhere
RawVecInner: Send,
impl Sync for Descriptorwhere
RawVecInner: Sync,
impl Unpin for Descriptor
impl UnsafeUnpin for Descriptor
impl UnwindSafe for Descriptorwhere
RawVecInner: UnwindSafe,
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