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 Types§
type ArbitraryInt
Required Associated Constants§
Implementations on Foreign Types§
source§impl<BaseType, const BITS: usize> Bitsized for UInt<BaseType, BITS>where
UInt<BaseType, BITS>: Number,
impl<BaseType, const BITS: usize> Bitsized for UInt<BaseType, BITS>where UInt<BaseType, BITS>: Number,
Only basing this on Number did not work, as bool and others are not Number. 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 Number and Bitsized would be good as well.