pub enum DefKind {
Constant,
ReadOnly,
Variable,
Param,
Method,
Type,
Case,
Field,
Content,
Component,
Import,
}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.
Content
A block, an item, a mod’s own kind of content; a screen.
Component
Import
A name a using brings in.
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