Trait SubSpec

Source
pub trait SubSpec<Rhs = Self>: Sub<Rhs> {
    // Required methods
    spec fn obeys_sub_spec() -> bool;
    spec fn sub_req(self, rhs: Rhs) -> bool
       where Self: Sized;
    spec fn sub_spec(self, rhs: Rhs) -> Self::Output
       where Self: Sized;
}

Required Methods§

Source

spec fn obeys_sub_spec() -> bool

Source

spec fn sub_req(self, rhs: Rhs) -> bool
where Self: Sized,

Source

spec fn sub_spec(self, rhs: Rhs) -> 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<Rhs, VERUS_SPEC__A: Sub<Rhs> + ?Sized> SubSpec<Rhs> for VERUS_SPEC__A