Trait NegSpec

Source
pub trait NegSpec: Neg {
    // Required methods
    spec fn obeys_neg_spec() -> bool;
    spec fn neg_req(self) -> bool
       where Self: Sized;
    spec fn neg_spec(self) -> Self::Output
       where Self: Sized;
}

Required Methods§

Source

spec fn obeys_neg_spec() -> bool

Source

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

Source

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

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§

Source§

impl<VERUS_SPEC__A: Neg + ?Sized> NegSpec for VERUS_SPEC__A