Trait lrs::num::UnsignedInt

Unsigned integers.

Syntax

trait UnsignedInt : Int {
    /* Required methods */
    fn checked_next_power_of_two(&self) -> Option<Self>
    fn next_power_of_two(&self) -> Self
}

Methods

ReceiverNameDescription
&selfchecked_next_power_of_two

Calculates the next power of two greater or equal the current value.

&selfnext_power_of_two

Calculates the next power of two greater or equal the current value.