Trait subtle::ConditionallyNegatable
[−]
[src]
pub trait ConditionallyNegatable { fn conditional_negate(&mut self, choice: Mask); }
Trait for items which can be conditionally negated in constant time.
Note
A generic implementation of ConditionallyNegatable
is provided for types
which are ConditionallyNegatable
+ Neg
, but this generic implementation
is feature-gated on the "generic-impls" feature in order to allow users to
make custom implementations without clashing with the orphan rules.
Required Methods
fn conditional_negate(&mut self, choice: Mask)
Conditionally negate an element if choice == 1u8
.