pub trait Bitsized {
type ArbitraryInt;
const BITS: usize;
const MAX: Self::ArbitraryInt;
}Expand description
This is internally used, but might be useful. No guarantees are given (for now).
Required Associated Constants§
Required Associated Types§
type ArbitraryInt
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.
Implementations on Foreign Types§
Source§impl<BaseType, const BITS: usize> Bitsized for UInt<BaseType, BITS>
Only basing this on Integer did not work, as bool and others are not Integer.
We could remove the whole macro_rules thing if it worked, though.
Maybe there is some way to do this, I’m not deep into types.
Finding some way to combine Integer and Bitsized would be good as well.
impl<BaseType, const BITS: usize> Bitsized for UInt<BaseType, BITS>
Only basing this on Integer did not work, as bool and others are not Integer. We could remove the whole macro_rules thing if it worked, though. Maybe there is some way to do this, I’m not deep into types. Finding some way to combine Integer and Bitsized would be good as well.