pub trait Decidable {
type Proof;
// Required method
fn decide(&self) -> Decision<Self::Proof>;
// Provided method
fn is_decidably_true(&self) -> bool { ... }
}Expand description
A type whose truth value is decidable.
Analogous to Lean 4’s Decidable typeclass. Implementors produce a
Decision when asked.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn is_decidably_true(&self) -> bool
fn is_decidably_true(&self) -> bool
Shorthand: returns true iff the proposition holds.