pub enum DeclKind {
Axiom,
Definition,
Theorem,
Opaque,
}Expand description
The kind of a declaration.
Variants§
Axiom
An axiom (assumed without proof).
Definition
A definition with a body.
Theorem
A theorem with a proof term.
Opaque
An opaque definition (body not unfolded by default).
Implementations§
Source§impl DeclKind
impl DeclKind
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Returns the string representation of the declaration kind.
Sourcepub fn is_assumed(&self) -> bool
pub fn is_assumed(&self) -> bool
Returns true if this kind is assumed without proof.
Sourcepub fn is_definition(&self) -> bool
pub fn is_definition(&self) -> bool
Returns true if this kind is a definition (has a body).
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