pub trait BasePow2: Base {
// Required methods
spec fn bits() -> nat;
proof fn bits_to_base();
}Expand description
Represents a base which is a power of 2 specified by Self::bits().
Required Methods§
Sourceproof fn bits_to_base()
proof fn bits_to_base()
ensures
Self::bits() > 1,Self::base() == pow2(Self::bits()),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.