# Trait ethcore_util::standard::ops::ShrAssign 1.8.0 [−] [src]

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

The `ShrAssign` trait is used to specify the functionality of `>>=`.

# Examples

A trivial implementation of `ShrAssign`. When `Foo >>= Foo` happens, it ends up calling `shr_assign`, and therefore, `main` prints `Shifting right!`.

    use std::ops::ShrAssign;

    struct Foo;

    impl ShrAssign<Foo> for Foo {
        fn shr_assign(&mut self, _rhs: Foo) {
            println!("Shifting right!");
        }
    }

    fn main() {
        let mut foo = Foo;
        foo >>= Foo;
    }

## Required Methods

### `fn shr_assign(&mut self, Rhs)`

The method for the `>>=` operator

## Implementors

- `impl ShrAssign<usize> for Wrapping<u8>`
- `impl ShrAssign<usize> for Wrapping<u16>`
- `impl ShrAssign<usize> for Wrapping<u32>`
- `impl ShrAssign<usize> for Wrapping<u64>`
- `impl ShrAssign<usize> for Wrapping<usize>`
- `impl ShrAssign<usize> for Wrapping<i8>`
- `impl ShrAssign<usize> for Wrapping<i16>`
- `impl ShrAssign<usize> for Wrapping<i32>`
- `impl ShrAssign<usize> for Wrapping<i64>`
- `impl ShrAssign<usize> for Wrapping<isize>`
- `impl ShrAssign<u8> for u8`
- `impl ShrAssign<u16> for u8`
- `impl ShrAssign<u32> for u8`
- `impl ShrAssign<u64> for u8`
- `impl ShrAssign<usize> for u8`
- `impl ShrAssign<i8> for u8`
- `impl ShrAssign<i16> for u8`
- `impl ShrAssign<i32> for u8`
- `impl ShrAssign<i64> for u8`
- `impl ShrAssign<isize> for u8`
- `impl ShrAssign<u8> for u16`
- `impl ShrAssign<u16> for u16`
- `impl ShrAssign<u32> for u16`
- `impl ShrAssign<u64> for u16`
- `impl ShrAssign<usize> for u16`
- `impl ShrAssign<i8> for u16`
- `impl ShrAssign<i16> for u16`
- `impl ShrAssign<i32> for u16`
- `impl ShrAssign<i64> for u16`
- `impl ShrAssign<isize> for u16`
- `impl ShrAssign<u8> for u32`
- `impl ShrAssign<u16> for u32`
- `impl ShrAssign<u32> for u32`
- `impl ShrAssign<u64> for u32`
- `impl ShrAssign<usize> for u32`
- `impl ShrAssign<i8> for u32`
- `impl ShrAssign<i16> for u32`
- `impl ShrAssign<i32> for u32`
- `impl ShrAssign<i64> for u32`
- `impl ShrAssign<isize> for u32`
- `impl ShrAssign<u8> for u64`
- `impl ShrAssign<u16> for u64`
- `impl ShrAssign<u32> for u64`
- `impl ShrAssign<u64> for u64`
- `impl ShrAssign<usize> for u64`
- `impl ShrAssign<i8> for u64`
- `impl ShrAssign<i16> for u64`
- `impl ShrAssign<i32> for u64`
- `impl ShrAssign<i64> for u64`
- `impl ShrAssign<isize> for u64`
- `impl ShrAssign<u8> for usize`
- `impl ShrAssign<u16> for usize`
- `impl ShrAssign<u32> for usize`
- `impl ShrAssign<u64> for usize`
- `impl ShrAssign<usize> for usize`
- `impl ShrAssign<i8> for usize`
- `impl ShrAssign<i16> for usize`
- `impl ShrAssign<i32> for usize`
- `impl ShrAssign<i64> for usize`
- `impl ShrAssign<isize> for usize`
- `impl ShrAssign<u8> for i8`
- `impl ShrAssign<u16> for i8`
- `impl ShrAssign<u32> for i8`
- `impl ShrAssign<u64> for i8`
- `impl ShrAssign<usize> for i8`
- `impl ShrAssign<i8> for i8`
- `impl ShrAssign<i16> for i8`
- `impl ShrAssign<i32> for i8`
- `impl ShrAssign<i64> for i8`
- `impl ShrAssign<isize> for i8`
- `impl ShrAssign<u8> for i16`
- `impl ShrAssign<u16> for i16`
- `impl ShrAssign<u32> for i16`
- `impl ShrAssign<u64> for i16`
- `impl ShrAssign<usize> for i16`
- `impl ShrAssign<i8> for i16`
- `impl ShrAssign<i16> for i16`
- `impl ShrAssign<i32> for i16`
- `impl ShrAssign<i64> for i16`
- `impl ShrAssign<isize> for i16`
- `impl ShrAssign<u8> for i32`
- `impl ShrAssign<u16> for i32`
- `impl ShrAssign<u32> for i32`
- `impl ShrAssign<u64> for i32`
- `impl ShrAssign<usize> for i32`
- `impl ShrAssign<i8> for i32`
- `impl ShrAssign<i16> for i32`
- `impl ShrAssign<i32> for i32`
- `impl ShrAssign<i64> for i32`
- `impl ShrAssign<isize> for i32`
- `impl ShrAssign<u8> for i64`
- `impl ShrAssign<u16> for i64`
- `impl ShrAssign<u32> for i64`
- `impl ShrAssign<u64> for i64`
- `impl ShrAssign<usize> for i64`
- `impl ShrAssign<i8> for i64`
- `impl ShrAssign<i16> for i64`
- `impl ShrAssign<i32> for i64`
- `impl ShrAssign<i64> for i64`
- `impl ShrAssign<isize> for i64`
- `impl ShrAssign<u8> for isize`
- `impl ShrAssign<u16> for isize`
- `impl ShrAssign<u32> for isize`
- `impl ShrAssign<u64> for isize`
- `impl ShrAssign<usize> for isize`
- `impl ShrAssign<i8> for isize`
- `impl ShrAssign<i16> for isize`
- `impl ShrAssign<i32> for isize`
- `impl ShrAssign<i64> for isize`
- `impl ShrAssign<isize> for isize`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand 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`)