Skip to main content

DecidableRel

Trait DecidableRel 

Source
pub trait DecidableRel<A> {
    // Required method
    fn decide_rel(&self, a: &A, b: &A) -> Decision<()>;

    // Provided method
    fn holds(&self, a: &A, b: &A) -> bool { ... }
}
Expand description

A decidable binary relation R : A → A → Prop.

Required Methods§

Source

fn decide_rel(&self, a: &A, b: &A) -> Decision<()>

Decide whether R(a, b) holds.

Provided Methods§

Source

fn holds(&self, a: &A, b: &A) -> bool

Check whether R(a, b) holds.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§