Trait ExNot

Source
pub trait ExNot {
    type ExternalTraitSpecificationFor: Not;
    type Output;

    // Required methods
    spec fn obeys_not_spec() -> bool;
    spec fn not_req(self) -> bool
       where Self: Sized;
    spec fn not_spec(self) -> Self::Output
       where Self: Sized;
    exec fn not(self) -> ret : Self::Output;
}

Required Associated Types§

Required Methods§

Source

spec fn obeys_not_spec() -> bool

Source

spec fn not_req(self) -> bool
where Self: Sized,

Source

spec fn not_spec(self) -> Self::Output
where Self: Sized,

Source

exec fn not(self) -> ret : Self::Output

requires
self.not_req(),
ensures
Self::obeys_not_spec() ==> ret == self.not_spec(),

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§