pub trait ShrRoundAssign<RHS> {
    fn shr_round_assign(&mut self, other: RHS, rm: RoundingMode);
}
Expand description

Right-shifts a number (divides it by a power of 2) in place, rounding the result according to a specified rounding mode.

Rounding might only be necessary if other is positive.

Required Methods

Implementations on Foreign Types

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits).

Worst-case complexity

Constant time and additional memory.

Panics

Panics if rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Shifts a number right (divides it by a power of 2) and rounds according to the specified rounding mode, in place.

Passing RoundingMode::Floor or RoundingMode::Down is equivalent to using >>. To test whether RoundingMode::Exact can be passed, use self.divisible_by_power_of_2(bits). Rounding might only be necessary if bits is non-negative.

See the ShrRound documentation for details.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if bits is positive and rm is RoundingMode::Exact but self is not divisible by $2^b$.

Examples

See here.

Implementors