pub enum DeclKind {
Show 19 variants
Definition,
Theorem,
Axiom,
Inductive,
Structure,
Class,
Instance,
Namespace,
Section,
Import,
Variable,
Open,
Attribute,
HashCmd,
Mutual,
Derive,
Notation,
Universe,
Other,
}Expand description
A coarse kind tag for a top-level declaration, used as part of
DeclFingerprint equality. Two decls with the same name but different
kinds are treated as unrelated (Delete + Insert rather than Modified).
Variants§
Definition
def / noncomputable def
Theorem
theorem / lemma
Axiom
axiom
Inductive
inductive
Structure
structure
Class
class
Instance
instance
Namespace
namespace … end
Section
section … end
Import
import
Variable
variable
Open
open
Attribute
attribute
HashCmd
#check, #eval, #print, …
Mutual
mutual { … }
Derive
deriving
Notation
notation / infixl / infixr / …
Universe
universe
Other
Any other / anonymous declaration
Implementations§
Trait Implementations§
impl Eq for DeclKind
impl StructuralPartialEq for DeclKind
Auto Trait Implementations§
impl Freeze for DeclKind
impl RefUnwindSafe for DeclKind
impl Send for DeclKind
impl Sync for DeclKind
impl Unpin for DeclKind
impl UnsafeUnpin for DeclKind
impl UnwindSafe for DeclKind
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