pub enum Suffix {
Namespace,
Type,
Term,
Method {
disambiguator: Option<String>,
},
TypeParameter,
Parameter,
Meta,
Macro,
}Expand description
The kind of a Descriptor, after SCIP’s descriptor suffixes.
Variants§
Namespace
name/: a module or namespace.
Type
name#: a type (struct, enum, union, trait, type alias, interface).
Term
name.: a term (constant, static, variable).
Method
name(disambiguator).: a function or method. The optional
disambiguator tells overloads apart.
TypeParameter
[name]: a type parameter. Within a type, it also marks a
trait-implementation block: Db#[Store]put(). is put from
impl Store for Db.
Parameter
(name): a parameter.
Meta
name:: metadata.
Macro
name!: a macro.
Trait Implementations§
impl Eq for Suffix
Source§impl Ord for Suffix
impl Ord for Suffix
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Suffix
impl PartialOrd for Suffix
impl StructuralPartialEq for Suffix
Auto Trait Implementations§
impl Freeze for Suffix
impl RefUnwindSafe for Suffix
impl Send for Suffix
impl Sync for Suffix
impl Unpin for Suffix
impl UnsafeUnpin for Suffix
impl UnwindSafe for Suffix
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