Trait twiddle::Int [−][src]
pub trait Int: Shl<usize, Output = Self> + Shr<usize, Output = Self> + Not<Output = Self> + BitAnd<Output = Self> + BitOr<Output = Self> + PartialEq<Self> + Clone + Copy { fn bit_width() -> usize; fn zero() -> Self; fn one() -> Self; fn cshl(self, n: usize) -> Self; }
A helper trait to avoid dependencies.
Required Methods
Implementors
impl Int for u8
impl Int for u16
impl Int for u32
impl Int for u64