Skip to main content

ExShrAssign

Trait ExShrAssign 

Source
pub trait ExShrAssign<Rhs = Self> {
    type ExternalTraitSpecificationFor: ShrAssign<Rhs>;

    // Required methods
    spec fn obeys_shr_assign_spec() -> bool;
    spec fn shr_assign_req(&self, rhs: Rhs) -> bool;
    spec fn shr_assign_spec(&self, rhs: Rhs) -> &Self;
    exec fn shr_assign(&mut self, rhs: Rhs);
}

Required Associated Types§

Required Methods§

Source

spec fn obeys_shr_assign_spec() -> bool

Source

spec fn shr_assign_req(&self, rhs: Rhs) -> bool

Source

spec fn shr_assign_spec(&self, rhs: Rhs) -> &Self

Source

exec fn shr_assign(&mut self, rhs: Rhs)

requires
self.shr_assign_req(rhs),
ensures
Self::obeys_shr_assign_spec() ==> &*final(self) == old(self).shr_assign_spec(rhs),

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§