core::ops::ShlAssign - Rust
Description: API documentation for the Rust `ShlAssign` trait in crate `core`.
Keywords: rust, rustlang, rust-lang, ShlAssign

# Trait core::ops::ShlAssign 1.8.0 [−] [src]

    #[lang = "shl_assign"]
    pub trait ShlAssign<Rhs> {
        fn shl_assign(&mut self, rhs: Rhs);
    }

The left shift assignment operator `<<=`.

# Examples

An implementation of `ShlAssign` for a wrapper around `usize`.

    use std::ops::ShlAssign;

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

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

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

## Required Methods

### `fn shl_assign(&mut self, rhs: Rhs)`

Performs the `<<=` operation.

## Implementors

- [src]
  `impl ShlAssign<usize> for Wrapping<u8>`
- [src]
  `impl<'a> ShlAssign<&'a usize> for Wrapping<u8>`
- [src]
  `impl ShlAssign<usize> for Wrapping<u16>`
- [src]
  `impl<'a> ShlAssign<&'a usize> for Wrapping<u16>`
- [src]
  `impl ShlAssign<usize> for Wrapping<u32>`
- [src]
  `impl<'a> ShlAssign<&'a usize> for Wrapping<u32>`
- [src]
  `impl ShlAssign<usize> for Wrapping<u64>`
- [src]
  `impl<'a> ShlAssign<&'a usize> for Wrapping<u64>`
- [src]
  `impl ShlAssign<usize> for Wrapping<usize>`
- [src]
  `impl<'a> ShlAssign<&'a usize> for Wrapping<usize>`
- [src]
  `impl ShlAssign<usize> for Wrapping<i8>`
- [src]
  `impl<'a> ShlAssign<&'a usize> for Wrapping<i8>`
- [src]
  `impl ShlAssign<usize> for Wrapping<i16>`
- [src]
  `impl<'a> ShlAssign<&'a usize> for Wrapping<i16>`
- [src]
  `impl ShlAssign<usize> for Wrapping<i32>`
- [src]
  `impl<'a> ShlAssign<&'a usize> for Wrapping<i32>`
- [src]
  `impl ShlAssign<usize> for Wrapping<i64>`
- [src]
  `impl<'a> ShlAssign<&'a usize> for Wrapping<i64>`
- [src]
  `impl ShlAssign<usize> for Wrapping<isize>`
- [src]
  `impl<'a> ShlAssign<&'a usize> for Wrapping<isize>`
- `impl ShlAssign<u8> for u8`
- `impl<'a> ShlAssign<&'a u8> for u8`
- `impl ShlAssign<u16> for u8`
- `impl<'a> ShlAssign<&'a u16> for u8`
- `impl ShlAssign<u32> for u8`
- `impl<'a> ShlAssign<&'a u32> for u8`
- `impl ShlAssign<u64> for u8`
- `impl<'a> ShlAssign<&'a u64> for u8`
- `impl ShlAssign<u128> for u8`
- `impl<'a> ShlAssign<&'a u128> for u8`
- `impl ShlAssign<usize> for u8`
- `impl<'a> ShlAssign<&'a usize> for u8`
- `impl ShlAssign<i8> for u8`
- `impl<'a> ShlAssign<&'a i8> for u8`
- `impl ShlAssign<i16> for u8`
- `impl<'a> ShlAssign<&'a i16> for u8`
- `impl ShlAssign<i32> for u8`
- `impl<'a> ShlAssign<&'a i32> for u8`
- `impl ShlAssign<i64> for u8`
- `impl<'a> ShlAssign<&'a i64> for u8`
- `impl ShlAssign<i128> for u8`
- `impl<'a> ShlAssign<&'a i128> for u8`
- `impl ShlAssign<isize> for u8`
- `impl<'a> ShlAssign<&'a isize> for u8`
- `impl ShlAssign<u8> for u16`
- `impl<'a> ShlAssign<&'a u8> for u16`
- `impl ShlAssign<u16> for u16`
- `impl<'a> ShlAssign<&'a u16> for u16`
- `impl ShlAssign<u32> for u16`
- `impl<'a> ShlAssign<&'a u32> for u16`
- `impl ShlAssign<u64> for u16`
- `impl<'a> ShlAssign<&'a u64> for u16`
- `impl ShlAssign<u128> for u16`
- `impl<'a> ShlAssign<&'a u128> for u16`
- `impl ShlAssign<usize> for u16`
- `impl<'a> ShlAssign<&'a usize> for u16`
- `impl ShlAssign<i8> for u16`
- `impl<'a> ShlAssign<&'a i8> for u16`
- `impl ShlAssign<i16> for u16`
- `impl<'a> ShlAssign<&'a i16> for u16`
- `impl ShlAssign<i32> for u16`
- `impl<'a> ShlAssign<&'a i32> for u16`
- `impl ShlAssign<i64> for u16`
- `impl<'a> ShlAssign<&'a i64> for u16`
- `impl ShlAssign<i128> for u16`
- `impl<'a> ShlAssign<&'a i128> for u16`
- `impl ShlAssign<isize> for u16`
- `impl<'a> ShlAssign<&'a isize> for u16`
- `impl ShlAssign<u8> for u32`
- `impl<'a> ShlAssign<&'a u8> for u32`
- `impl ShlAssign<u16> for u32`
- `impl<'a> ShlAssign<&'a u16> for u32`
- `impl ShlAssign<u32> for u32`
- `impl<'a> ShlAssign<&'a u32> for u32`
- `impl ShlAssign<u64> for u32`
- `impl<'a> ShlAssign<&'a u64> for u32`
- `impl ShlAssign<u128> for u32`
- `impl<'a> ShlAssign<&'a u128> for u32`
- `impl ShlAssign<usize> for u32`
- `impl<'a> ShlAssign<&'a usize> for u32`
- `impl ShlAssign<i8> for u32`
- `impl<'a> ShlAssign<&'a i8> for u32`
- `impl ShlAssign<i16> for u32`
- `impl<'a> ShlAssign<&'a i16> for u32`
- `impl ShlAssign<i32> for u32`
- `impl<'a> ShlAssign<&'a i32> for u32`
- `impl ShlAssign<i64> for u32`
- `impl<'a> ShlAssign<&'a i64> for u32`
- `impl ShlAssign<i128> for u32`
- `impl<'a> ShlAssign<&'a i128> for u32`
- `impl ShlAssign<isize> for u32`
- `impl<'a> ShlAssign<&'a isize> for u32`
- `impl ShlAssign<u8> for u64`
- `impl<'a> ShlAssign<&'a u8> for u64`
- `impl ShlAssign<u16> for u64`
- `impl<'a> ShlAssign<&'a u16> for u64`
- `impl ShlAssign<u32> for u64`
- `impl<'a> ShlAssign<&'a u32> for u64`
- `impl ShlAssign<u64> for u64`
- `impl<'a> ShlAssign<&'a u64> for u64`
- `impl ShlAssign<u128> for u64`
- `impl<'a> ShlAssign<&'a u128> for u64`
- `impl ShlAssign<usize> for u64`
- `impl<'a> ShlAssign<&'a usize> for u64`
- `impl ShlAssign<i8> for u64`
- `impl<'a> ShlAssign<&'a i8> for u64`
- `impl ShlAssign<i16> for u64`
- `impl<'a> ShlAssign<&'a i16> for u64`
- `impl ShlAssign<i32> for u64`
- `impl<'a> ShlAssign<&'a i32> for u64`
- `impl ShlAssign<i64> for u64`
- `impl<'a> ShlAssign<&'a i64> for u64`
- `impl ShlAssign<i128> for u64`
- `impl<'a> ShlAssign<&'a i128> for u64`
- `impl ShlAssign<isize> for u64`
- `impl<'a> ShlAssign<&'a isize> for u64`
- `impl ShlAssign<u8> for u128`
- `impl<'a> ShlAssign<&'a u8> for u128`
- `impl ShlAssign<u16> for u128`
- `impl<'a> ShlAssign<&'a u16> for u128`
- `impl ShlAssign<u32> for u128`
- `impl<'a> ShlAssign<&'a u32> for u128`
- `impl ShlAssign<u64> for u128`
- `impl<'a> ShlAssign<&'a u64> for u128`
- `impl ShlAssign<u128> for u128`
- `impl<'a> ShlAssign<&'a u128> for u128`
- `impl ShlAssign<usize> for u128`
- `impl<'a> ShlAssign<&'a usize> for u128`
- `impl ShlAssign<i8> for u128`
- `impl<'a> ShlAssign<&'a i8> for u128`
- `impl ShlAssign<i16> for u128`
- `impl<'a> ShlAssign<&'a i16> for u128`
- `impl ShlAssign<i32> for u128`
- `impl<'a> ShlAssign<&'a i32> for u128`
- `impl ShlAssign<i64> for u128`
- `impl<'a> ShlAssign<&'a i64> for u128`
- `impl ShlAssign<i128> for u128`
- `impl<'a> ShlAssign<&'a i128> for u128`
- `impl ShlAssign<isize> for u128`
- `impl<'a> ShlAssign<&'a isize> for u128`
- `impl ShlAssign<u8> for usize`
- `impl<'a> ShlAssign<&'a u8> for usize`
- `impl ShlAssign<u16> for usize`
- `impl<'a> ShlAssign<&'a u16> for usize`
- `impl ShlAssign<u32> for usize`
- `impl<'a> ShlAssign<&'a u32> for usize`
- `impl ShlAssign<u64> for usize`
- `impl<'a> ShlAssign<&'a u64> for usize`
- `impl ShlAssign<u128> for usize`
- `impl<'a> ShlAssign<&'a u128> for usize`
- `impl ShlAssign<usize> for usize`
- `impl<'a> ShlAssign<&'a usize> for usize`
- `impl ShlAssign<i8> for usize`
- `impl<'a> ShlAssign<&'a i8> for usize`
- `impl ShlAssign<i16> for usize`
- `impl<'a> ShlAssign<&'a i16> for usize`
- `impl ShlAssign<i32> for usize`
- `impl<'a> ShlAssign<&'a i32> for usize`
- `impl ShlAssign<i64> for usize`
- `impl<'a> ShlAssign<&'a i64> for usize`
- `impl ShlAssign<i128> for usize`
- `impl<'a> ShlAssign<&'a i128> for usize`
- `impl ShlAssign<isize> for usize`
- `impl<'a> ShlAssign<&'a isize> for usize`
- `impl ShlAssign<u8> for i8`
- `impl<'a> ShlAssign<&'a u8> for i8`
- `impl ShlAssign<u16> for i8`
- `impl<'a> ShlAssign<&'a u16> for i8`
- `impl ShlAssign<u32> for i8`
- `impl<'a> ShlAssign<&'a u32> for i8`
- `impl ShlAssign<u64> for i8`
- `impl<'a> ShlAssign<&'a u64> for i8`
- `impl ShlAssign<u128> for i8`
- `impl<'a> ShlAssign<&'a u128> for i8`
- `impl ShlAssign<usize> for i8`
- `impl<'a> ShlAssign<&'a usize> for i8`
- `impl ShlAssign<i8> for i8`
- `impl<'a> ShlAssign<&'a i8> for i8`
- `impl ShlAssign<i16> for i8`
- `impl<'a> ShlAssign<&'a i16> for i8`
- `impl ShlAssign<i32> for i8`
- `impl<'a> ShlAssign<&'a i32> for i8`
- `impl ShlAssign<i64> for i8`
- `impl<'a> ShlAssign<&'a i64> for i8`
- `impl ShlAssign<i128> for i8`
- `impl<'a> ShlAssign<&'a i128> for i8`
- `impl ShlAssign<isize> for i8`
- `impl<'a> ShlAssign<&'a isize> for i8`
- `impl ShlAssign<u8> for i16`
- `impl<'a> ShlAssign<&'a u8> for i16`
- `impl ShlAssign<u16> for i16`
- `impl<'a> ShlAssign<&'a u16> for i16`
- `impl ShlAssign<u32> for i16`
- `impl<'a> ShlAssign<&'a u32> for i16`
- `impl ShlAssign<u64> for i16`
- `impl<'a> ShlAssign<&'a u64> for i16`
- `impl ShlAssign<u128> for i16`
- `impl<'a> ShlAssign<&'a u128> for i16`
- `impl ShlAssign<usize> for i16`
- `impl<'a> ShlAssign<&'a usize> for i16`
- `impl ShlAssign<i8> for i16`
- `impl<'a> ShlAssign<&'a i8> for i16`
- `impl ShlAssign<i16> for i16`
- `impl<'a> ShlAssign<&'a i16> for i16`
- `impl ShlAssign<i32> for i16`
- `impl<'a> ShlAssign<&'a i32> for i16`
- `impl ShlAssign<i64> for i16`
- `impl<'a> ShlAssign<&'a i64> for i16`
- `impl ShlAssign<i128> for i16`
- `impl<'a> ShlAssign<&'a i128> for i16`
- `impl ShlAssign<isize> for i16`
- `impl<'a> ShlAssign<&'a isize> for i16`
- `impl ShlAssign<u8> for i32`
- `impl<'a> ShlAssign<&'a u8> for i32`
- `impl ShlAssign<u16> for i32`
- `impl<'a> ShlAssign<&'a u16> for i32`
- `impl ShlAssign<u32> for i32`
- `impl<'a> ShlAssign<&'a u32> for i32`
- `impl ShlAssign<u64> for i32`
- `impl<'a> ShlAssign<&'a u64> for i32`
- `impl ShlAssign<u128> for i32`
- `impl<'a> ShlAssign<&'a u128> for i32`
- `impl ShlAssign<usize> for i32`
- `impl<'a> ShlAssign<&'a usize> for i32`
- `impl ShlAssign<i8> for i32`
- `impl<'a> ShlAssign<&'a i8> for i32`
- `impl ShlAssign<i16> for i32`
- `impl<'a> ShlAssign<&'a i16> for i32`
- `impl ShlAssign<i32> for i32`
- `impl<'a> ShlAssign<&'a i32> for i32`
- `impl ShlAssign<i64> for i32`
- `impl<'a> ShlAssign<&'a i64> for i32`
- `impl ShlAssign<i128> for i32`
- `impl<'a> ShlAssign<&'a i128> for i32`
- `impl ShlAssign<isize> for i32`
- `impl<'a> ShlAssign<&'a isize> for i32`
- `impl ShlAssign<u8> for i64`
- `impl<'a> ShlAssign<&'a u8> for i64`
- `impl ShlAssign<u16> for i64`
- `impl<'a> ShlAssign<&'a u16> for i64`
- `impl ShlAssign<u32> for i64`
- `impl<'a> ShlAssign<&'a u32> for i64`
- `impl ShlAssign<u64> for i64`
- `impl<'a> ShlAssign<&'a u64> for i64`
- `impl ShlAssign<u128> for i64`
- `impl<'a> ShlAssign<&'a u128> for i64`
- `impl ShlAssign<usize> for i64`
- `impl<'a> ShlAssign<&'a usize> for i64`
- `impl ShlAssign<i8> for i64`
- `impl<'a> ShlAssign<&'a i8> for i64`
- `impl ShlAssign<i16> for i64`
- `impl<'a> ShlAssign<&'a i16> for i64`
- `impl ShlAssign<i32> for i64`
- `impl<'a> ShlAssign<&'a i32> for i64`
- `impl ShlAssign<i64> for i64`
- `impl<'a> ShlAssign<&'a i64> for i64`
- `impl ShlAssign<i128> for i64`
- `impl<'a> ShlAssign<&'a i128> for i64`
- `impl ShlAssign<isize> for i64`
- `impl<'a> ShlAssign<&'a isize> for i64`
- `impl ShlAssign<u8> for i128`
- `impl<'a> ShlAssign<&'a u8> for i128`
- `impl ShlAssign<u16> for i128`
- `impl<'a> ShlAssign<&'a u16> for i128`
- `impl ShlAssign<u32> for i128`
- `impl<'a> ShlAssign<&'a u32> for i128`
- `impl ShlAssign<u64> for i128`
- `impl<'a> ShlAssign<&'a u64> for i128`
- `impl ShlAssign<u128> for i128`
- `impl<'a> ShlAssign<&'a u128> for i128`
- `impl ShlAssign<usize> for i128`
- `impl<'a> ShlAssign<&'a usize> for i128`
- `impl ShlAssign<i8> for i128`
- `impl<'a> ShlAssign<&'a i8> for i128`
- `impl ShlAssign<i16> for i128`
- `impl<'a> ShlAssign<&'a i16> for i128`
- `impl ShlAssign<i32> for i128`
- `impl<'a> ShlAssign<&'a i32> for i128`
- `impl ShlAssign<i64> for i128`
- `impl<'a> ShlAssign<&'a i64> for i128`
- `impl ShlAssign<i128> for i128`
- `impl<'a> ShlAssign<&'a i128> for i128`
- `impl ShlAssign<isize> for i128`
- `impl<'a> ShlAssign<&'a isize> for i128`
- `impl ShlAssign<u8> for isize`
- `impl<'a> ShlAssign<&'a u8> for isize`
- `impl ShlAssign<u16> for isize`
- `impl<'a> ShlAssign<&'a u16> for isize`
- `impl ShlAssign<u32> for isize`
- `impl<'a> ShlAssign<&'a u32> for isize`
- `impl ShlAssign<u64> for isize`
- `impl<'a> ShlAssign<&'a u64> for isize`
- `impl ShlAssign<u128> for isize`
- `impl<'a> ShlAssign<&'a u128> for isize`
- `impl ShlAssign<usize> for isize`
- `impl<'a> ShlAssign<&'a usize> for isize`
- `impl ShlAssign<i8> for isize`
- `impl<'a> ShlAssign<&'a i8> for isize`
- `impl ShlAssign<i16> for isize`
- `impl<'a> ShlAssign<&'a i16> for isize`
- `impl ShlAssign<i32> for isize`
- `impl<'a> ShlAssign<&'a i32> for isize`
- `impl ShlAssign<i64> for isize`
- `impl<'a> ShlAssign<&'a i64> for isize`
- `impl ShlAssign<i128> for isize`
- `impl<'a> ShlAssign<&'a i128> for isize`
- `impl ShlAssign<isize> for isize`
- `impl<'a> ShlAssign<&'a 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
↹
  Switch tab
⏎
  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`)