Trait core::ops::ShrAssign1.8.0[][src]

pub trait ShrAssign<Rhs = Self> {
    fn shr_assign(&mut self, rhs: Rhs);
}

The right shift assignment operator >>=.

Examples

An implementation of ShrAssign for a wrapper around usize.

use std::ops::ShrAssign;

#[derive(Debug, PartialEq)]
struct Scalar(usize);

impl ShrAssign<usize> for Scalar {
    fn shr_assign(&mut self, rhs: usize) {
        self.0 >>= rhs;
    }
}

let mut scalar = Scalar(16);
scalar >>= 2;
assert_eq!(scalar, Scalar(4));
Run

Required methods

fn shr_assign(&mut self, rhs: Rhs)[src]

Performs the >>= operation.

Examples

let mut x: u8 = 5;
x >>= 1;
assert_eq!(x, 2);

let mut x: u8 = 2;
x >>= 1;
assert_eq!(x, 1);
Run
Loading content...

Implementors

impl ShrAssign<&'_ i8> for i81.22.0[src]

impl ShrAssign<&'_ i8> for i161.22.0[src]

impl ShrAssign<&'_ i8> for i321.22.0[src]

impl ShrAssign<&'_ i8> for i641.22.0[src]

impl ShrAssign<&'_ i8> for i1281.22.0[src]

impl ShrAssign<&'_ i8> for isize1.22.0[src]

impl ShrAssign<&'_ i8> for u81.22.0[src]

impl ShrAssign<&'_ i8> for u161.22.0[src]

impl ShrAssign<&'_ i8> for u321.22.0[src]

impl ShrAssign<&'_ i8> for u641.22.0[src]

impl ShrAssign<&'_ i8> for u1281.22.0[src]

impl ShrAssign<&'_ i8> for usize1.22.0[src]

impl ShrAssign<&'_ i16> for i81.22.0[src]

impl ShrAssign<&'_ i16> for i161.22.0[src]

impl ShrAssign<&'_ i16> for i321.22.0[src]

impl ShrAssign<&'_ i16> for i641.22.0[src]

impl ShrAssign<&'_ i16> for i1281.22.0[src]

impl ShrAssign<&'_ i16> for isize1.22.0[src]

impl ShrAssign<&'_ i16> for u81.22.0[src]

impl ShrAssign<&'_ i16> for u161.22.0[src]

impl ShrAssign<&'_ i16> for u321.22.0[src]

impl ShrAssign<&'_ i16> for u641.22.0[src]

impl ShrAssign<&'_ i16> for u1281.22.0[src]

impl ShrAssign<&'_ i16> for usize1.22.0[src]

impl ShrAssign<&'_ i32> for i81.22.0[src]

impl ShrAssign<&'_ i32> for i161.22.0[src]

impl ShrAssign<&'_ i32> for i321.22.0[src]

impl ShrAssign<&'_ i32> for i641.22.0[src]

impl ShrAssign<&'_ i32> for i1281.22.0[src]

impl ShrAssign<&'_ i32> for isize1.22.0[src]

impl ShrAssign<&'_ i32> for u81.22.0[src]

impl ShrAssign<&'_ i32> for u161.22.0[src]

impl ShrAssign<&'_ i32> for u321.22.0[src]

impl ShrAssign<&'_ i32> for u641.22.0[src]

impl ShrAssign<&'_ i32> for u1281.22.0[src]

impl ShrAssign<&'_ i32> for usize1.22.0[src]

impl ShrAssign<&'_ i64> for i81.22.0[src]

impl ShrAssign<&'_ i64> for i161.22.0[src]

impl ShrAssign<&'_ i64> for i321.22.0[src]

impl ShrAssign<&'_ i64> for i641.22.0[src]

impl ShrAssign<&'_ i64> for i1281.22.0[src]

impl ShrAssign<&'_ i64> for isize1.22.0[src]

impl ShrAssign<&'_ i64> for u81.22.0[src]

impl ShrAssign<&'_ i64> for u161.22.0[src]

impl ShrAssign<&'_ i64> for u321.22.0[src]

impl ShrAssign<&'_ i64> for u641.22.0[src]

impl ShrAssign<&'_ i64> for u1281.22.0[src]

impl ShrAssign<&'_ i64> for usize1.22.0[src]

impl ShrAssign<&'_ i128> for i81.22.0[src]

impl ShrAssign<&'_ i128> for i161.22.0[src]

impl ShrAssign<&'_ i128> for i321.22.0[src]

impl ShrAssign<&'_ i128> for i641.22.0[src]

impl ShrAssign<&'_ i128> for i1281.22.0[src]

impl ShrAssign<&'_ i128> for isize1.22.0[src]

impl ShrAssign<&'_ i128> for u81.22.0[src]

impl ShrAssign<&'_ i128> for u161.22.0[src]

impl ShrAssign<&'_ i128> for u321.22.0[src]

impl ShrAssign<&'_ i128> for u641.22.0[src]

impl ShrAssign<&'_ i128> for u1281.22.0[src]

impl ShrAssign<&'_ i128> for usize1.22.0[src]

impl ShrAssign<&'_ isize> for i81.22.0[src]

impl ShrAssign<&'_ isize> for i161.22.0[src]

impl ShrAssign<&'_ isize> for i321.22.0[src]

impl ShrAssign<&'_ isize> for i641.22.0[src]

impl ShrAssign<&'_ isize> for i1281.22.0[src]

impl ShrAssign<&'_ isize> for isize1.22.0[src]

impl ShrAssign<&'_ isize> for u81.22.0[src]

impl ShrAssign<&'_ isize> for u161.22.0[src]

impl ShrAssign<&'_ isize> for u321.22.0[src]

impl ShrAssign<&'_ isize> for u641.22.0[src]

impl ShrAssign<&'_ isize> for u1281.22.0[src]

impl ShrAssign<&'_ isize> for usize1.22.0[src]

impl ShrAssign<&'_ u8> for i81.22.0[src]

impl ShrAssign<&'_ u8> for i161.22.0[src]

impl ShrAssign<&'_ u8> for i321.22.0[src]

impl ShrAssign<&'_ u8> for i641.22.0[src]

impl ShrAssign<&'_ u8> for i1281.22.0[src]

impl ShrAssign<&'_ u8> for isize1.22.0[src]

impl ShrAssign<&'_ u8> for u81.22.0[src]

impl ShrAssign<&'_ u8> for u161.22.0[src]

impl ShrAssign<&'_ u8> for u321.22.0[src]

impl ShrAssign<&'_ u8> for u641.22.0[src]

impl ShrAssign<&'_ u8> for u1281.22.0[src]

impl ShrAssign<&'_ u8> for usize1.22.0[src]

impl ShrAssign<&'_ u16> for i81.22.0[src]

impl ShrAssign<&'_ u16> for i161.22.0[src]

impl ShrAssign<&'_ u16> for i321.22.0[src]

impl ShrAssign<&'_ u16> for i641.22.0[src]

impl ShrAssign<&'_ u16> for i1281.22.0[src]

impl ShrAssign<&'_ u16> for isize1.22.0[src]

impl ShrAssign<&'_ u16> for u81.22.0[src]

impl ShrAssign<&'_ u16> for u161.22.0[src]

impl ShrAssign<&'_ u16> for u321.22.0[src]

impl ShrAssign<&'_ u16> for u641.22.0[src]

impl ShrAssign<&'_ u16> for u1281.22.0[src]

impl ShrAssign<&'_ u16> for usize1.22.0[src]

impl ShrAssign<&'_ u32> for i81.22.0[src]

impl ShrAssign<&'_ u32> for i161.22.0[src]

impl ShrAssign<&'_ u32> for i321.22.0[src]

impl ShrAssign<&'_ u32> for i641.22.0[src]

impl ShrAssign<&'_ u32> for i1281.22.0[src]

impl ShrAssign<&'_ u32> for isize1.22.0[src]

impl ShrAssign<&'_ u32> for u81.22.0[src]

impl ShrAssign<&'_ u32> for u161.22.0[src]

impl ShrAssign<&'_ u32> for u321.22.0[src]

impl ShrAssign<&'_ u32> for u641.22.0[src]

impl ShrAssign<&'_ u32> for u1281.22.0[src]

impl ShrAssign<&'_ u32> for usize1.22.0[src]

impl ShrAssign<&'_ u64> for i81.22.0[src]

impl ShrAssign<&'_ u64> for i161.22.0[src]

impl ShrAssign<&'_ u64> for i321.22.0[src]

impl ShrAssign<&'_ u64> for i641.22.0[src]

impl ShrAssign<&'_ u64> for i1281.22.0[src]

impl ShrAssign<&'_ u64> for isize1.22.0[src]

impl ShrAssign<&'_ u64> for u81.22.0[src]

impl ShrAssign<&'_ u64> for u161.22.0[src]

impl ShrAssign<&'_ u64> for u321.22.0[src]

impl ShrAssign<&'_ u64> for u641.22.0[src]

impl ShrAssign<&'_ u64> for u1281.22.0[src]

impl ShrAssign<&'_ u64> for usize1.22.0[src]

impl ShrAssign<&'_ u128> for i81.22.0[src]

impl ShrAssign<&'_ u128> for i161.22.0[src]

impl ShrAssign<&'_ u128> for i321.22.0[src]

impl ShrAssign<&'_ u128> for i641.22.0[src]

impl ShrAssign<&'_ u128> for i1281.22.0[src]

impl ShrAssign<&'_ u128> for isize1.22.0[src]

impl ShrAssign<&'_ u128> for u81.22.0[src]

impl ShrAssign<&'_ u128> for u161.22.0[src]

impl ShrAssign<&'_ u128> for u321.22.0[src]

impl ShrAssign<&'_ u128> for u641.22.0[src]

impl ShrAssign<&'_ u128> for u1281.22.0[src]

impl ShrAssign<&'_ u128> for usize1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<i8>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<i16>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<i32>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<i64>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<i128>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<isize>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<u8>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<u16>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<u32>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<u64>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<u128>1.22.0[src]

impl ShrAssign<&'_ usize> for Wrapping<usize>1.22.0[src]

impl ShrAssign<&'_ usize> for i81.22.0[src]

impl ShrAssign<&'_ usize> for i161.22.0[src]

impl ShrAssign<&'_ usize> for i321.22.0[src]

impl ShrAssign<&'_ usize> for i641.22.0[src]

impl ShrAssign<&'_ usize> for i1281.22.0[src]

impl ShrAssign<&'_ usize> for isize1.22.0[src]

impl ShrAssign<&'_ usize> for u81.22.0[src]

impl ShrAssign<&'_ usize> for u161.22.0[src]

impl ShrAssign<&'_ usize> for u321.22.0[src]

impl ShrAssign<&'_ usize> for u641.22.0[src]

impl ShrAssign<&'_ usize> for u1281.22.0[src]

impl ShrAssign<&'_ usize> for usize1.22.0[src]

impl ShrAssign<i8> for i8[src]

impl ShrAssign<i8> for i16[src]

impl ShrAssign<i8> for i32[src]

impl ShrAssign<i8> for i64[src]

impl ShrAssign<i8> for i128[src]

impl ShrAssign<i8> for isize[src]

impl ShrAssign<i8> for u8[src]

impl ShrAssign<i8> for u16[src]

impl ShrAssign<i8> for u32[src]

impl ShrAssign<i8> for u64[src]

impl ShrAssign<i8> for u128[src]

impl ShrAssign<i8> for usize[src]

impl ShrAssign<i16> for i8[src]

impl ShrAssign<i16> for i16[src]

impl ShrAssign<i16> for i32[src]

impl ShrAssign<i16> for i64[src]

impl ShrAssign<i16> for i128[src]

impl ShrAssign<i16> for isize[src]

impl ShrAssign<i16> for u8[src]

impl ShrAssign<i16> for u16[src]

impl ShrAssign<i16> for u32[src]

impl ShrAssign<i16> for u64[src]

impl ShrAssign<i16> for u128[src]

impl ShrAssign<i16> for usize[src]

impl ShrAssign<i32> for i8[src]

impl ShrAssign<i32> for i16[src]

impl ShrAssign<i32> for i32[src]

impl ShrAssign<i32> for i64[src]

impl ShrAssign<i32> for i128[src]

impl ShrAssign<i32> for isize[src]

impl ShrAssign<i32> for u8[src]

impl ShrAssign<i32> for u16[src]

impl ShrAssign<i32> for u32[src]

impl ShrAssign<i32> for u64[src]

impl ShrAssign<i32> for u128[src]

impl ShrAssign<i32> for usize[src]

impl ShrAssign<i64> for i8[src]

impl ShrAssign<i64> for i16[src]

impl ShrAssign<i64> for i32[src]

impl ShrAssign<i64> for i64[src]

impl ShrAssign<i64> for i128[src]

impl ShrAssign<i64> for isize[src]

impl ShrAssign<i64> for u8[src]

impl ShrAssign<i64> for u16[src]

impl ShrAssign<i64> for u32[src]

impl ShrAssign<i64> for u64[src]

impl ShrAssign<i64> for u128[src]

impl ShrAssign<i64> for usize[src]

impl ShrAssign<i128> for i8[src]

impl ShrAssign<i128> for i16[src]

impl ShrAssign<i128> for i32[src]

impl ShrAssign<i128> for i64[src]

impl ShrAssign<i128> for i128[src]

impl ShrAssign<i128> for isize[src]

impl ShrAssign<i128> for u8[src]

impl ShrAssign<i128> for u16[src]

impl ShrAssign<i128> for u32[src]

impl ShrAssign<i128> for u64[src]

impl ShrAssign<i128> for u128[src]

impl ShrAssign<i128> for usize[src]

impl ShrAssign<isize> for i8[src]

impl ShrAssign<isize> for i16[src]

impl ShrAssign<isize> for i32[src]

impl ShrAssign<isize> for i64[src]

impl ShrAssign<isize> for i128[src]

impl ShrAssign<isize> for isize[src]

impl ShrAssign<isize> for u8[src]

impl ShrAssign<isize> for u16[src]

impl ShrAssign<isize> for u32[src]

impl ShrAssign<isize> for u64[src]

impl ShrAssign<isize> for u128[src]

impl ShrAssign<isize> for usize[src]

impl ShrAssign<u8> for i8[src]

impl ShrAssign<u8> for i16[src]

impl ShrAssign<u8> for i32[src]

impl ShrAssign<u8> for i64[src]

impl ShrAssign<u8> for i128[src]

impl ShrAssign<u8> for isize[src]

impl ShrAssign<u8> for u8[src]

impl ShrAssign<u8> for u16[src]

impl ShrAssign<u8> for u32[src]

impl ShrAssign<u8> for u64[src]

impl ShrAssign<u8> for u128[src]

impl ShrAssign<u8> for usize[src]

impl ShrAssign<u16> for i8[src]

impl ShrAssign<u16> for i16[src]

impl ShrAssign<u16> for i32[src]

impl ShrAssign<u16> for i64[src]

impl ShrAssign<u16> for i128[src]

impl ShrAssign<u16> for isize[src]

impl ShrAssign<u16> for u8[src]

impl ShrAssign<u16> for u16[src]

impl ShrAssign<u16> for u32[src]

impl ShrAssign<u16> for u64[src]

impl ShrAssign<u16> for u128[src]

impl ShrAssign<u16> for usize[src]

impl ShrAssign<u32> for i8[src]

impl ShrAssign<u32> for i16[src]

impl ShrAssign<u32> for i32[src]

impl ShrAssign<u32> for i64[src]

impl ShrAssign<u32> for i128[src]

impl ShrAssign<u32> for isize[src]

impl ShrAssign<u32> for u8[src]

impl ShrAssign<u32> for u16[src]

impl ShrAssign<u32> for u32[src]

impl ShrAssign<u32> for u64[src]

impl ShrAssign<u32> for u128[src]

impl ShrAssign<u32> for usize[src]

impl ShrAssign<u64> for i8[src]

impl ShrAssign<u64> for i16[src]

impl ShrAssign<u64> for i32[src]

impl ShrAssign<u64> for i64[src]

impl ShrAssign<u64> for i128[src]

impl ShrAssign<u64> for isize[src]

impl ShrAssign<u64> for u8[src]

impl ShrAssign<u64> for u16[src]

impl ShrAssign<u64> for u32[src]

impl ShrAssign<u64> for u64[src]

impl ShrAssign<u64> for u128[src]

impl ShrAssign<u64> for usize[src]

impl ShrAssign<u128> for i8[src]

impl ShrAssign<u128> for i16[src]

impl ShrAssign<u128> for i32[src]

impl ShrAssign<u128> for i64[src]

impl ShrAssign<u128> for i128[src]

impl ShrAssign<u128> for isize[src]

impl ShrAssign<u128> for u8[src]

impl ShrAssign<u128> for u16[src]

impl ShrAssign<u128> for u32[src]

impl ShrAssign<u128> for u64[src]

impl ShrAssign<u128> for u128[src]

impl ShrAssign<u128> for usize[src]

impl ShrAssign<usize> for Wrapping<i8>[src]

impl ShrAssign<usize> for Wrapping<i16>[src]

impl ShrAssign<usize> for Wrapping<i32>[src]

impl ShrAssign<usize> for Wrapping<i64>[src]

impl ShrAssign<usize> for Wrapping<i128>[src]

impl ShrAssign<usize> for Wrapping<isize>[src]

impl ShrAssign<usize> for Wrapping<u8>[src]

impl ShrAssign<usize> for Wrapping<u16>[src]

impl ShrAssign<usize> for Wrapping<u32>[src]

impl ShrAssign<usize> for Wrapping<u64>[src]

impl ShrAssign<usize> for Wrapping<u128>[src]

impl ShrAssign<usize> for Wrapping<usize>[src]

impl ShrAssign<usize> for i8[src]

impl ShrAssign<usize> for i16[src]

impl ShrAssign<usize> for i32[src]

impl ShrAssign<usize> for i64[src]

impl ShrAssign<usize> for i128[src]

impl ShrAssign<usize> for isize[src]

impl ShrAssign<usize> for u8[src]

impl ShrAssign<usize> for u16[src]

impl ShrAssign<usize> for u32[src]

impl ShrAssign<usize> for u64[src]

impl ShrAssign<usize> for u128[src]

impl ShrAssign<usize> for usize[src]

Loading content...