Trait overflower_support::ShrSaturateAssign
[−]
[src]
pub trait ShrSaturateAssign<RHS = usize> { fn shr_assign_saturate(&mut self, rhs: RHS); }
Shift right in place, set self to 0 if the number of bits shifted are higher than the width of the type
This does the same as the std::ops::ShrAssign
trait for most types.
it is specialized for integer types to return zero on over- or underflow.
Required Methods
fn shr_assign_saturate(&mut self, rhs: RHS)
shift right in place, set self to 0 if the number of bits shifted are higher than the width of the type
Implementors
impl<R, T: ShrAssign<R>> ShrSaturateAssign<R> for T