pub enum DefKind {
Show 13 variants
Constant,
ReadOnly,
Variable,
Param,
Method,
Type,
Case,
Field,
ReadOnlyField,
Content,
Component,
Import,
Lifetime,
}Expand description
What a name stands for.
Variants§
Constant
const: known at build time.
ReadOnly
readonly, a computed property, a foreach’s item: read only.
Variable
A local, a pattern’s binding, a patch’s written local.
Param
Method
Type
A type: a class, record, union, enum, interface, alias, unit, generic.
Case
An enum’s case, a union’s variant.
Field
A field or a property that can be set.
ReadOnlyField
A readonly field: set by its type’s constructors only (C#’s).
Content
A block, an item, a mod’s own kind of content; a screen.
Component
Import
A name a using brings in.
Lifetime
'a, declared by a generic list.
Implementations§
Trait Implementations§
impl Copy for DefKind
impl Eq for DefKind
impl StructuralPartialEq for DefKind
Auto Trait Implementations§
impl Freeze for DefKind
impl RefUnwindSafe for DefKind
impl Send for DefKind
impl Sync for DefKind
impl Unpin for DefKind
impl UnsafeUnpin for DefKind
impl UnwindSafe for DefKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.