pub enum ParametricError {
UnknownSignature(QualifiedName),
NotGeneric(QualifiedName),
Bounded {
sig: QualifiedName,
param: Ident,
bound: String,
},
Unfillable {
sig: QualifiedName,
what: String,
why: String,
},
NoProofs(QualifiedName),
}Expand description
Why a proposition’s free theorem could not be checked.
Variants§
UnknownSignature(QualifiedName)
The proposition is not in the workspace.
NotGeneric(QualifiedName)
It has no type parameters, so there is nothing to be parametric in.
Bounded
A parameter is bounded, so a proof may lawfully look at one.
Fields
§
sig: QualifiedNameThe proposition.
Unfillable
Some part of the signature cannot be filled or read without help.
Fields
§
sig: QualifiedNameThe proposition.
NoProofs(QualifiedName)
Nothing proves it, so there is nothing to hold to the theorem.
Trait Implementations§
Source§impl Debug for ParametricError
impl Debug for ParametricError
Source§impl Display for ParametricError
impl Display for ParametricError
Source§impl Error for ParametricError
impl Error for ParametricError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ParametricError
impl RefUnwindSafe for ParametricError
impl Send for ParametricError
impl Sync for ParametricError
impl Unpin for ParametricError
impl UnsafeUnpin for ParametricError
impl UnwindSafe for ParametricError
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