pub enum InductiveError {
AlreadyDefined(Name),
UndefinedType(Name),
InvalidConstructorType(Name),
UniverseTooSmall(String),
NonStrictlyPositive(Name),
Other(String),
}Expand description
Errors that can occur when checking an inductive type definition.
Variants§
AlreadyDefined(Name)
The type name is already defined.
UndefinedType(Name)
A constructor references a type that is not in scope.
InvalidConstructorType(Name)
A constructor has an invalid type (not a Pi ending in the inductive type).
UniverseTooSmall(String)
The universe level is not large enough.
NonStrictlyPositive(Name)
A non-strictly positive occurrence of the type.
Other(String)
General error.
Trait Implementations§
Source§impl Clone for InductiveError
impl Clone for InductiveError
Source§fn clone(&self) -> InductiveError
fn clone(&self) -> InductiveError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InductiveError
impl Debug for InductiveError
Source§impl Display for InductiveError
impl Display for InductiveError
Source§impl PartialEq for InductiveError
impl PartialEq for InductiveError
impl StructuralPartialEq for InductiveError
Auto Trait Implementations§
impl Freeze for InductiveError
impl RefUnwindSafe for InductiveError
impl Send for InductiveError
impl Sync for InductiveError
impl Unpin for InductiveError
impl UnsafeUnpin for InductiveError
impl UnwindSafe for InductiveError
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