Trait ExBitAnd

Source
pub trait ExBitAnd<Rhs = Self> {
    type ExternalTraitSpecificationFor: BitAnd<Rhs>;
    type Output;

    // Required methods
    spec fn obeys_bitand_spec() -> bool;
    spec fn bitand_req(self, rhs: Rhs) -> bool
       where Self: Sized;
    spec fn bitand_spec(self, rhs: Rhs) -> Self::Output
       where Self: Sized;
    exec fn bitand(self, rhs: Rhs) -> ret : Self::Output;
}

Required Associated Types§

Required Methods§

Source

spec fn obeys_bitand_spec() -> bool

Source

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

Source

spec fn bitand_spec(self, rhs: Rhs) -> Self::Output
where Self: Sized,

Source

exec fn bitand(self, rhs: Rhs) -> ret : Self::Output

requires
self.bitand_req(rhs),
ensures
Self::obeys_bitand_spec() ==> ret == self.bitand_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§