[−][src]Trait gridiron::digits::constant_time_primitives::ConstantUnsignedPrimitives
Associated Constants
Loading content...Required methods
fn not(self) -> Self
fn mux(self, x: Self, y: Self) -> Self
This chooses the first value if self is 1, chooses the 2nd value if the value is 0. This is only well defined for 0 or 1. If your value can be anything except those 2, do not use this.
fn const_eq(self, y: Self) -> ConstantBool<Self>
fn const_eq0(self) -> ConstantBool<Self>
fn const_neq(self, y: Self) -> ConstantBool<Self>
fn const_gt(self, y: Self) -> ConstantBool<Self>
fn const_ge(self, y: Self) -> ConstantBool<Self>
fn const_lt(self, y: Self) -> ConstantBool<Self>
fn const_le(self, y: Self) -> ConstantBool<Self>
fn const_abs(self) -> Self
Removes the high bit if it's set, otherwise leaves number as is.