# Trait std::ops::ShrAssign 1.8.0 [−] [src]

    #[lang = "shr_assign"]
    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)`

Performs the `>>=` operation.

## Implementors

- [src]
  `impl<'a> ShrAssign<&'a u8> for isize`
- [src]
  `impl<'a> ShrAssign<&'a i64> for usize`
- [src]
  `impl<'a> ShrAssign<&'a usize> for Wrapping<u8>`
- [src]
  `impl ShrAssign<i128> for u8`
- [src]
  `impl ShrAssign<usize> for usize`
- [src]
  `impl ShrAssign<i32> for i32`
- [src]
  `impl<'a> ShrAssign<&'a i64> for i32`
- [src]
  `impl<'a> ShrAssign<&'a u16> for i128`
- [src]
  `impl<'a> ShrAssign<&'a u128> for i128`
- [src]
  `impl ShrAssign<u8> for u8`
- [src]
  `impl<'a> ShrAssign<&'a i32> for usize`
- [src]
  `impl ShrAssign<u128> for usize`
- [src]
  `impl ShrAssign<isize> for usize`
- [src]
  `impl ShrAssign<i128> for u16`
- [src]
  `impl ShrAssign<u64> for u64`
- [src]
  `impl ShrAssign<usize> for i16`
- [src]
  `impl ShrAssign<isize> for i32`
- [src]
  `impl<'a> ShrAssign<&'a isize> for u32`
- [src]
  `impl<'a> ShrAssign<&'a i64> for i8`
- [src]
  `impl<'a> ShrAssign<&'a i8> for i64`
- [src]
  `impl<'a> ShrAssign<&'a u64> for u16`
- [src]
  `impl<'a> ShrAssign<&'a usize> for u128`
- [src]
  `impl<'a> ShrAssign<&'a i8> for i32`
- [src]
  `impl ShrAssign<u64> for i128`
- [src]
  `impl<'a> ShrAssign<&'a u32> for i32`
- [src]
  `impl<'a> ShrAssign<&'a i32> for i8`
- [src]
  `impl<'a> ShrAssign<&'a i32> for u8`
- [src]
  `impl ShrAssign<i64> for usize`
- [src]
  `impl<'a> ShrAssign<&'a u8> for i64`
- [src]
  `impl ShrAssign<i64> for u64`
- [src]
  `impl ShrAssign<i32> for u16`
- [src]
  `impl<'a> ShrAssign<&'a i32> for i32`
- [src]
  `impl<'a> ShrAssign<&'a i128> for u128`
- [src]
  `impl ShrAssign<u128> for i16`
- [src]
  `impl<'a> ShrAssign<&'a usize> for Wrapping<u32>`
- [src]
  `impl ShrAssign<u64> for u128`
- [src]
  `impl<'a> ShrAssign<&'a i128> for i8`
- [src]
  `impl<'a> ShrAssign<&'a u64> for i128`
- [src]
  `impl ShrAssign<i16> for i8`
- [src]
  `impl<'a> ShrAssign<&'a usize> for usize`
- [src]
  `impl<'a> ShrAssign<&'a i32> for i128`
- [src]
  `impl<'a> ShrAssign<&'a u64> for i64`
- [src]
  `impl ShrAssign<u8> for u128`
- [src]
  `impl<'a> ShrAssign<&'a u8> for i32`
- [src]
  `impl ShrAssign<i8> for i16`
- [src]
  `impl ShrAssign<i16> for i32`
- [src]
  `impl ShrAssign<i16> for i128`
- [src]
  `impl ShrAssign<i8> for u128`
- [src]
  `impl ShrAssign<isize> for i8`
- [src]
  `impl ShrAssign<u64> for u8`
- [src]
  `impl ShrAssign<u64> for u16`
- [src]
  `impl ShrAssign<u64> for i32`
- [src]
  `impl<'a> ShrAssign<&'a u128> for u128`
- [src]
  `impl<'a> ShrAssign<&'a i8> for u16`
- [src]
  `impl ShrAssign<i8> for u16`
- [src]
  `impl<'a> ShrAssign<&'a i64> for u128`
- [src]
  `impl<'a> ShrAssign<&'a u32> for isize`
- [src]
  `impl ShrAssign<usize> for Wrapping<i32>`
- [src]
  `impl ShrAssign<i128> for u128`
- [src]
  `impl<'a> ShrAssign<&'a isize> for i64`
- [src]
  `impl ShrAssign<i32> for isize`
- [src]
  `impl<'a> ShrAssign<&'a u16> for u64`
- [src]
  `impl<'a> ShrAssign<&'a usize> for i32`
- [src]
  `impl<'a> ShrAssign<&'a u32> for u64`
- [src]
  `impl<'a> ShrAssign<&'a i16> for i32`
- [src]
  `impl ShrAssign<usize> for Wrapping<u16>`
- [src]
  `impl ShrAssign<u32> for u64`
- [src]
  `impl<'a> ShrAssign<&'a i8> for u8`
- [src]
  `impl ShrAssign<i64> for i64`
- [src]
  `impl<'a> ShrAssign<&'a u64> for isize`
- [src]
  `impl<'a> ShrAssign<&'a usize> for Wrapping<usize>`
- [src]
  `impl<'a> ShrAssign<&'a isize> for i16`
- [src]
  `impl ShrAssign<i128> for isize`
- [src]
  `impl ShrAssign<u128> for u64`
- [src]
  `impl ShrAssign<u128> for i64`
- [src]
  `impl<'a> ShrAssign<&'a usize> for Wrapping<isize>`
- [src]
  `impl ShrAssign<i8> for isize`
- [src]
  `impl ShrAssign<u32> for i16`
- [src]
  `impl<'a> ShrAssign<&'a usize> for Wrapping<i16>`
- [src]
  `impl<'a> ShrAssign<&'a i8> for u128`
- [src]
  `impl ShrAssign<i128> for u32`
- [src]
  `impl ShrAssign<i8> for u32`
- [src]
  `impl<'a> ShrAssign<&'a i16> for i16`
- [src]
  `impl ShrAssign<i64> for isize`
- [src]
  `impl<'a> ShrAssign<&'a u64> for u32`
- [src]
  `impl ShrAssign<usize> for Wrapping<usize>`
- [src]
  `impl<'a> ShrAssign<&'a i16> for i64`
- [src]
  `impl ShrAssign<i32> for i64`
- [src]
  `impl<'a> ShrAssign<&'a i128> for i64`
- [src]
  `impl<'a> ShrAssign<&'a i64> for i64`
- [src]
  `impl<'a> ShrAssign<&'a u16> for u128`
- [src]
  `impl<'a> ShrAssign<&'a usize> for u8`
- [src]
  `impl ShrAssign<usize> for Wrapping<isize>`
- [src]
  `impl<'a> ShrAssign<&'a u8> for i8`
- [src]
  `impl ShrAssign<i16> for isize`
- [src]
  `impl ShrAssign<i8> for i128`
- [src]
  `impl ShrAssign<u8> for i16`
- [src]
  `impl ShrAssign<i64> for u16`
- [src]
  `impl ShrAssign<usize> for u128`
- [src]
  `impl ShrAssign<usize> for Wrapping<u8>`
- [src]
  `impl<'a> ShrAssign<&'a i16> for isize`
- [src]
  `impl ShrAssign<u16> for i32`
- [src]
  `impl<'a> ShrAssign<&'a usize> for i8`
- [src]
  `impl ShrAssign<i8> for i8`
- [src]
  `impl ShrAssign<u64> for i16`
- [src]
  `impl ShrAssign<u64> for usize`
- [src]
  `impl<'a> ShrAssign<&'a i16> for u64`
- [src]
  `impl<'a> ShrAssign<&'a u128> for i8`
- [src]
  `impl<'a> ShrAssign<&'a u16> for i64`
- [src]
  `impl ShrAssign<u8> for i8`
- [src]
  `impl<'a> ShrAssign<&'a i32> for isize`
- [src]
  `impl<'a> ShrAssign<&'a u128> for u32`
- [src]
  `impl ShrAssign<u16> for u64`
- [src]
  `impl<'a> ShrAssign<&'a u8> for i128`
- [src]
  `impl<'a> ShrAssign<&'a i32> for i64`
- [src]
  `impl<'a> ShrAssign<&'a u64> for i8`
- [src]
  `impl<'a> ShrAssign<&'a u32> for i8`
- [src]
  `impl ShrAssign<i16> for u128`
- [src]
  `impl<'a> ShrAssign<&'a i32> for u32`
- [src]
  `impl ShrAssign<usize> for u8`
- [src]
  `impl ShrAssign<i16> for u64`
- [src]
  `impl<'a> ShrAssign<&'a i128> for u16`
- [src]
  `impl ShrAssign<usize> for i128`
- [src]
  `impl<'a> ShrAssign<&'a u32> for u128`
- [src]
  `impl ShrAssign<usize> for Wrapping<i16>`
- [src]
  `impl<'a> ShrAssign<&'a usize> for Wrapping<i32>`
- [src]
  `impl<'a> ShrAssign<&'a i128> for i128`
- [src]
  `impl ShrAssign<u16> for i16`
- [src]
  `impl ShrAssign<i64> for i128`
- [src]
  `impl<'a> ShrAssign<&'a i64> for isize`
- [src]
  `impl ShrAssign<i32> for i8`
- [src]
  `impl<'a> ShrAssign<&'a i64> for i128`
- [src]
  `impl ShrAssign<u16> for i128`
- [src]
  `impl<'a> ShrAssign<&'a i128> for i32`
- [src]
  `impl ShrAssign<u64> for isize`
- [src]
  `impl ShrAssign<i128> for i128`
- [src]
  `impl ShrAssign<isize> for u8`
- [src]
  `impl ShrAssign<i16> for u8`
- [src]
  `impl ShrAssign<u8> for u32`
- [src]
  `impl ShrAssign<usize> for Wrapping<i64>`
- [src]
  `impl ShrAssign<i32> for u64`
- [src]
  `impl ShrAssign<usize> for Wrapping<u64>`
- [src]
  `impl ShrAssign<u32> for u8`
- [src]
  `impl ShrAssign<u8> for u16`
- [src]
  `impl ShrAssign<i8> for i64`
- [src]
  `impl ShrAssign<i32> for u8`
- [src]
  `impl<'a> ShrAssign<&'a u32> for u16`
- [src]
  `impl ShrAssign<isize> for u128`
- [src]
  `impl<'a> ShrAssign<&'a u32> for usize`
- [src]
  `impl ShrAssign<u32> for i128`
- [src]
  `impl ShrAssign<i64> for u32`
- [src]
  `impl ShrAssign<i8> for u8`
- [src]
  `impl<'a> ShrAssign<&'a u128> for u64`
- [src]
  `impl<'a> ShrAssign<&'a u8> for u128`
- [src]
  `impl ShrAssign<u128> for i8`
- [src]
  `impl ShrAssign<usize> for i64`
- [src]
  `impl ShrAssign<i32> for u128`
- [src]
  `impl<'a> ShrAssign<&'a i64> for u16`
- [src]
  `impl ShrAssign<isize> for i64`
- [src]
  `impl<'a> ShrAssign<&'a isize> for u8`
- [src]
  `impl ShrAssign<u32> for u32`
- [src]
  `impl<'a> ShrAssign<&'a u128> for i16`
- [src]
  `impl ShrAssign<usize> for isize`
- [src]
  `impl<'a> ShrAssign<&'a u64> for u128`
- [src]
  `impl ShrAssign<isize> for u16`
- [src]
  `impl ShrAssign<u16> for i8`
- [src]
  `impl ShrAssign<usize> for u16`
- [src]
  `impl<'a> ShrAssign<&'a u64> for u8`
- [src]
  `impl<'a> ShrAssign<&'a i8> for usize`
- [src]
  `impl ShrAssign<u32> for usize`
- [src]
  `impl<'a> ShrAssign<&'a i128> for u8`
- [src]
  `impl ShrAssign<u32> for isize`
- [src]
  `impl<'a> ShrAssign<&'a usize> for u64`
- [src]
  `impl<'a> ShrAssign<&'a isize> for u128`
- [src]
  `impl ShrAssign<u64> for i8`
- [src]
  `impl ShrAssign<i32> for u32`
- [src]
  `impl ShrAssign<u32> for i8`
- [src]
  `impl ShrAssign<i16> for u32`
- [src]
  `impl<'a> ShrAssign<&'a u128> for i64`
- [src]
  `impl ShrAssign<u8> for isize`
- [src]
  `impl ShrAssign<usize> for i8`
- [src]
  `impl<'a> ShrAssign<&'a u16> for usize`
- [src]
  `impl<'a> ShrAssign<&'a i64> for i16`
- [src]
  `impl ShrAssign<u32> for u16`
- [src]
  `impl<'a> ShrAssign<&'a u8> for usize`
- [src]
  `impl ShrAssign<u128> for u128`
- [src]
  `impl<'a> ShrAssign<&'a u16> for u8`
- [src]
  `impl ShrAssign<i128> for u64`
- [src]
  `impl<'a> ShrAssign<&'a i8> for u32`
- [src]
  `impl<'a> ShrAssign<&'a u16> for i8`
- [src]
  `impl ShrAssign<i32> for i16`
- [src]
  `impl<'a> ShrAssign<&'a i16> for i8`
- [src]
  `impl<'a> ShrAssign<&'a usize> for Wrapping<i8>`
- [src]
  `impl ShrAssign<u16> for isize`
- [src]
  `impl ShrAssign<u128> for isize`
- [src]
  `impl<'a> ShrAssign<&'a u128> for i32`
- [src]
  `impl ShrAssign<isize> for u64`
- [src]
  `impl<'a> ShrAssign<&'a u128> for isize`
- [src]
  `impl<'a> ShrAssign<&'a u32> for i16`
- [src]
  `impl<'a> ShrAssign<&'a i16> for u128`
- [src]
  `impl<'a> ShrAssign<&'a i128> for isize`
- [src]
  `impl ShrAssign<usize> for Wrapping<i8>`
- [src]
  `impl<'a> ShrAssign<&'a usize> for i128`
- [src]
  `impl<'a> ShrAssign<&'a i64> for u8`
- [src]
  `impl<'a> ShrAssign<&'a u16> for i32`
- [src]
  `impl<'a> ShrAssign<&'a u32> for u8`
- [src]
  `impl<'a> ShrAssign<&'a u8> for u16`
- [src]
  `impl<'a> ShrAssign<&'a isize> for u16`
- [src]
  `impl ShrAssign<i64> for u8`
- [src]
  `impl ShrAssign<u64> for u32`
- [src]
  `impl ShrAssign<u8> for i64`
- [src]
  `impl<'a> ShrAssign<&'a i16> for i128`
- [src]
  `impl<'a> ShrAssign<&'a u16> for isize`
- [src]
  `impl ShrAssign<u128> for i32`
- [src]
  `impl<'a> ShrAssign<&'a i64> for u32`
- [src]
  `impl ShrAssign<u8> for usize`
- [src]
  `impl<'a> ShrAssign<&'a i32> for u16`
- [src]
  `impl ShrAssign<u8> for i32`
- [src]
  `impl ShrAssign<u128> for u16`
- [src]
  `impl ShrAssign<u128> for i128`
- [src]
  `impl<'a> ShrAssign<&'a i32> for i16`
- [src]
  `impl<'a> ShrAssign<&'a i128> for u32`
- [src]
  `impl<'a> ShrAssign<&'a u8> for i16`
- [src]
  `impl<'a> ShrAssign<&'a i8> for i16`
- [src]
  `impl<'a> ShrAssign<&'a i16> for u16`
- [src]
  `impl<'a> ShrAssign<&'a isize> for usize`
- [src]
  `impl ShrAssign<usize> for u64`
- [src]
  `impl<'a> ShrAssign<&'a u8> for u8`
- [src]
  `impl<'a> ShrAssign<&'a i16> for u32`
- [src]
  `impl<'a> ShrAssign<&'a i64> for u64`
- [src]
  `impl<'a> ShrAssign<&'a usize> for Wrapping<i64>`
- [src]
  `impl ShrAssign<i8> for usize`
- [src]
  `impl<'a> ShrAssign<&'a isize> for u64`
- [src]
  `impl ShrAssign<u16> for u128`
- [src]
  `impl ShrAssign<u8> for i128`
- [src]
  `impl ShrAssign<i16> for i16`
- [src]
  `impl ShrAssign<u16> for i64`
- [src]
  `impl ShrAssign<usize> for u32`
- [src]
  `impl ShrAssign<u64> for i64`
- [src]
  `impl<'a> ShrAssign<&'a isize> for i32`
- [src]
  `impl ShrAssign<isize> for i128`
- [src]
  `impl ShrAssign<u32> for i32`
- [src]
  `impl<'a> ShrAssign<&'a i16> for usize`
- [src]
  `impl ShrAssign<i16> for u16`
- [src]
  `impl ShrAssign<i8> for i32`
- [src]
  `impl ShrAssign<i128> for usize`
- [src]
  `impl ShrAssign<i128> for i16`
- [src]
  `impl<'a> ShrAssign<&'a u32> for i128`
- [src]
  `impl ShrAssign<i128> for i8`
- [src]
  `impl<'a> ShrAssign<&'a usize> for i16`
- [src]
  `impl ShrAssign<isize> for isize`
- [src]
  `impl<'a> ShrAssign<&'a u128> for usize`
- [src]
  `impl ShrAssign<i64> for i32`
- [src]
  `impl ShrAssign<u32> for i64`
- [src]
  `impl ShrAssign<u8> for u64`
- [src]
  `impl<'a> ShrAssign<&'a u128> for u8`
- [src]
  `impl<'a> ShrAssign<&'a u16> for u32`
- [src]
  `impl ShrAssign<i64> for u128`
- [src]
  `impl<'a> ShrAssign<&'a isize> for i8`
- [src]
  `impl ShrAssign<i8> for u64`
- [src]
  `impl<'a> ShrAssign<&'a usize> for u16`
- [src]
  `impl<'a> ShrAssign<&'a u8> for u32`
- [src]
  `impl<'a> ShrAssign<&'a i128> for usize`
- [src]
  `impl ShrAssign<usize> for Wrapping<u32>`
- [src]
  `impl<'a> ShrAssign<&'a u16> for i16`
- [src]
  `impl<'a> ShrAssign<&'a i32> for u64`
- [src]
  `impl<'a> ShrAssign<&'a i8> for isize`
- [src]
  `impl<'a> ShrAssign<&'a u32> for i64`
- [src]
  `impl<'a> ShrAssign<&'a i128> for u64`
- [src]
  `impl<'a> ShrAssign<&'a usize> for Wrapping<u64>`
- [src]
  `impl ShrAssign<i64> for i16`
- [src]
  `impl ShrAssign<i64> for i8`
- [src]
  `impl<'a> ShrAssign<&'a i128> for i16`
- [src]
  `impl ShrAssign<i32> for i128`
- [src]
  `impl<'a> ShrAssign<&'a usize> for i64`
- [src]
  `impl<'a> ShrAssign<&'a i8> for i128`
- [src]
  `impl<'a> ShrAssign<&'a usize> for isize`
- [src]
  `impl ShrAssign<u128> for u32`
- [src]
  `impl ShrAssign<u128> for u8`
- [src]
  `impl ShrAssign<usize> for i32`
- [src]
  `impl ShrAssign<u16> for u16`
- [src]
  `impl<'a> ShrAssign<&'a u128> for u16`
- [src]
  `impl ShrAssign<i128> for i32`
- [src]
  `impl<'a> ShrAssign<&'a u64> for i32`
- [src]
  `impl<'a> ShrAssign<&'a usize> for Wrapping<u16>`
- [src]
  `impl ShrAssign<u16> for usize`
- [src]
  `impl<'a> ShrAssign<&'a u64> for u64`
- [src]
  `impl<'a> ShrAssign<&'a u64> for usize`
- [src]
  `impl<'a> ShrAssign<&'a i8> for u64`
- [src]
  `impl ShrAssign<i32> for usize`
- [src]
  `impl ShrAssign<isize> for i16`
- [src]
  `impl ShrAssign<i16> for usize`
- [src]
  `impl ShrAssign<u32> for u128`
- [src]
  `impl<'a> ShrAssign<&'a u8> for u64`
- [src]
  `impl<'a> ShrAssign<&'a usize> for u32`
- [src]
  `impl ShrAssign<u16> for u8`
- [src]
  `impl<'a> ShrAssign<&'a i32> for u128`
- [src]
  `impl<'a> ShrAssign<&'a u32> for u32`
- [src]
  `impl ShrAssign<isize> for u32`
- [src]
  `impl<'a> ShrAssign<&'a u16> for u16`
- [src]
  `impl<'a> ShrAssign<&'a i16> for u8`
- [src]
  `impl<'a> ShrAssign<&'a isize> for isize`
- [src]
  `impl ShrAssign<u16> for u32`
- [src]
  `impl<'a> ShrAssign<&'a isize> for i128`
- [src]
  `impl<'a> ShrAssign<&'a u64> for i16`
- [src]
  `impl ShrAssign<i128> for i64`
- [src]
  `impl<'a> ShrAssign<&'a i8> for i8`
- [src]
  `impl ShrAssign<i16> for i64`

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)