# Trait bitflags::__core::ops::Shl [−] [src]

    pub trait Shl<RHS> {
        type Output;
        fn shl(self, rhs: RHS) -> Self::Output;
    }

The `Shl` trait is used to specify the functionality of `<<`.

# Examples

A trivial implementation of `Shl`. When `Foo << Foo` happens, it ends up calling `shl`, and therefore, `main` prints `Shifting left!`.

    use std::ops::Shl;

    struct Foo;

    impl Shl<Foo> for Foo {
        type Output = Foo;

        fn shl(self, _rhs: Foo) -> Foo {
            println!("Shifting left!");
            self
        }
    }

    fn main() {
        Foo << Foo;
    }

## Associated Types

### `type Output`

The resulting type after applying the `<<` operator

## Required Methods

### `fn shl(self, rhs: RHS) -> Self::Output`

The method for the `<<` operator

## Implementors

- `impl Shl for u8`
- `impl<'a> Shl for &'a u8`
- `impl<'a> Shl for u8`
- `impl<'a, 'b> Shl for &'b u8`
- `impl Shl for u8`
- `impl<'a> Shl for &'a u8`
- `impl<'a> Shl for u8`
- `impl<'a, 'b> Shl for &'b u8`
- `impl Shl for u8`
- `impl<'a> Shl for &'a u8`
- `impl<'a> Shl for u8`
- `impl<'a, 'b> Shl for &'b u8`
- `impl Shl for u8`
- `impl<'a> Shl for &'a u8`
- `impl<'a> Shl for u8`
- `impl<'a, 'b> Shl for &'b u8`
- `impl Shl for u8`
- `impl<'a> Shl for &'a u8`
- `impl<'a> Shl for u8`
- `impl<'a, 'b> Shl for &'b u8`
- `impl Shl for u8`
- `impl<'a> Shl for &'a u8`
- `impl<'a> Shl for u8`
- `impl<'a, 'b> Shl for &'b u8`
- `impl Shl for u8`
- `impl<'a> Shl for &'a u8`
- `impl<'a> Shl for u8`
- `impl<'a, 'b> Shl for &'b u8`
- `impl Shl for u8`
- `impl<'a> Shl for &'a u8`
- `impl<'a> Shl for u8`
- `impl<'a, 'b> Shl for &'b u8`
- `impl Shl for u8`
- `impl<'a> Shl for &'a u8`
- `impl<'a> Shl for u8`
- `impl<'a, 'b> Shl for &'b u8`
- `impl Shl for u8`
- `impl<'a> Shl for &'a u8`
- `impl<'a> Shl for u8`
- `impl<'a, 'b> Shl for &'b u8`
- `impl Shl for u16`
- `impl<'a> Shl for &'a u16`
- `impl<'a> Shl for u16`
- `impl<'a, 'b> Shl for &'b u16`
- `impl Shl for u16`
- `impl<'a> Shl for &'a u16`
- `impl<'a> Shl for u16`
- `impl<'a, 'b> Shl for &'b u16`
- `impl Shl for u16`
- `impl<'a> Shl for &'a u16`
- `impl<'a> Shl for u16`
- `impl<'a, 'b> Shl for &'b u16`
- `impl Shl for u16`
- `impl<'a> Shl for &'a u16`
- `impl<'a> Shl for u16`
- `impl<'a, 'b> Shl for &'b u16`
- `impl Shl for u16`
- `impl<'a> Shl for &'a u16`
- `impl<'a> Shl for u16`
- `impl<'a, 'b> Shl for &'b u16`
- `impl Shl for u16`
- `impl<'a> Shl for &'a u16`
- `impl<'a> Shl for u16`
- `impl<'a, 'b> Shl for &'b u16`
- `impl Shl for u16`
- `impl<'a> Shl for &'a u16`
- `impl<'a> Shl for u16`
- `impl<'a, 'b> Shl for &'b u16`
- `impl Shl for u16`
- `impl<'a> Shl for &'a u16`
- `impl<'a> Shl for u16`
- `impl<'a, 'b> Shl for &'b u16`
- `impl Shl for u16`
- `impl<'a> Shl for &'a u16`
- `impl<'a> Shl for u16`
- `impl<'a, 'b> Shl for &'b u16`
- `impl Shl for u16`
- `impl<'a> Shl for &'a u16`
- `impl<'a> Shl for u16`
- `impl<'a, 'b> Shl for &'b u16`
- `impl Shl for u32`
- `impl<'a> Shl for &'a u32`
- `impl<'a> Shl for u32`
- `impl<'a, 'b> Shl for &'b u32`
- `impl Shl for u32`
- `impl<'a> Shl for &'a u32`
- `impl<'a> Shl for u32`
- `impl<'a, 'b> Shl for &'b u32`
- `impl Shl for u32`
- `impl<'a> Shl for &'a u32`
- `impl<'a> Shl for u32`
- `impl<'a, 'b> Shl for &'b u32`
- `impl Shl for u32`
- `impl<'a> Shl for &'a u32`
- `impl<'a> Shl for u32`
- `impl<'a, 'b> Shl for &'b u32`
- `impl Shl for u32`
- `impl<'a> Shl for &'a u32`
- `impl<'a> Shl for u32`
- `impl<'a, 'b> Shl for &'b u32`
- `impl Shl for u32`
- `impl<'a> Shl for &'a u32`
- `impl<'a> Shl for u32`
- `impl<'a, 'b> Shl for &'b u32`
- `impl Shl for u32`
- `impl<'a> Shl for &'a u32`
- `impl<'a> Shl for u32`
- `impl<'a, 'b> Shl for &'b u32`
- `impl Shl for u32`
- `impl<'a> Shl for &'a u32`
- `impl<'a> Shl for u32`
- `impl<'a, 'b> Shl for &'b u32`
- `impl Shl for u32`
- `impl<'a> Shl for &'a u32`
- `impl<'a> Shl for u32`
- `impl<'a, 'b> Shl for &'b u32`
- `impl Shl for u32`
- `impl<'a> Shl for &'a u32`
- `impl<'a> Shl for u32`
- `impl<'a, 'b> Shl for &'b u32`
- `impl Shl for u64`
- `impl<'a> Shl for &'a u64`
- `impl<'a> Shl for u64`
- `impl<'a, 'b> Shl for &'b u64`
- `impl Shl for u64`
- `impl<'a> Shl for &'a u64`
- `impl<'a> Shl for u64`
- `impl<'a, 'b> Shl for &'b u64`
- `impl Shl for u64`
- `impl<'a> Shl for &'a u64`
- `impl<'a> Shl for u64`
- `impl<'a, 'b> Shl for &'b u64`
- `impl Shl for u64`
- `impl<'a> Shl for &'a u64`
- `impl<'a> Shl for u64`
- `impl<'a, 'b> Shl for &'b u64`
- `impl Shl for u64`
- `impl<'a> Shl for &'a u64`
- `impl<'a> Shl for u64`
- `impl<'a, 'b> Shl for &'b u64`
- `impl Shl for u64`
- `impl<'a> Shl for &'a u64`
- `impl<'a> Shl for u64`
- `impl<'a, 'b> Shl for &'b u64`
- `impl Shl for u64`
- `impl<'a> Shl for &'a u64`
- `impl<'a> Shl for u64`
- `impl<'a, 'b> Shl for &'b u64`
- `impl Shl for u64`
- `impl<'a> Shl for &'a u64`
- `impl<'a> Shl for u64`
- `impl<'a, 'b> Shl for &'b u64`
- `impl Shl for u64`
- `impl<'a> Shl for &'a u64`
- `impl<'a> Shl for u64`
- `impl<'a, 'b> Shl for &'b u64`
- `impl Shl for u64`
- `impl<'a> Shl for &'a u64`
- `impl<'a> Shl for u64`
- `impl<'a, 'b> Shl for &'b u64`
- `impl Shl for usize`
- `impl<'a> Shl for &'a usize`
- `impl<'a> Shl for usize`
- `impl<'a, 'b> Shl for &'b usize`
- `impl Shl for usize`
- `impl<'a> Shl for &'a usize`
- `impl<'a> Shl for usize`
- `impl<'a, 'b> Shl for &'b usize`
- `impl Shl for usize`
- `impl<'a> Shl for &'a usize`
- `impl<'a> Shl for usize`
- `impl<'a, 'b> Shl for &'b usize`
- `impl Shl for usize`
- `impl<'a> Shl for &'a usize`
- `impl<'a> Shl for usize`
- `impl<'a, 'b> Shl for &'b usize`
- `impl Shl for usize`
- `impl<'a> Shl for &'a usize`
- `impl<'a> Shl for usize`
- `impl<'a, 'b> Shl for &'b usize`
- `impl Shl for usize`
- `impl<'a> Shl for &'a usize`
- `impl<'a> Shl for usize`
- `impl<'a, 'b> Shl for &'b usize`
- `impl Shl for usize`
- `impl<'a> Shl for &'a usize`
- `impl<'a> Shl for usize`
- `impl<'a, 'b> Shl for &'b usize`
- `impl Shl for usize`
- `impl<'a> Shl for &'a usize`
- `impl<'a> Shl for usize`
- `impl<'a, 'b> Shl for &'b usize`
- `impl Shl for usize`
- `impl<'a> Shl for &'a usize`
- `impl<'a> Shl for usize`
- `impl<'a, 'b> Shl for &'b usize`
- `impl Shl for usize`
- `impl<'a> Shl for &'a usize`
- `impl<'a> Shl for usize`
- `impl<'a, 'b> Shl for &'b usize`
- `impl Shl for i8`
- `impl<'a> Shl for &'a i8`
- `impl<'a> Shl for i8`
- `impl<'a, 'b> Shl for &'b i8`
- `impl Shl for i8`
- `impl<'a> Shl for &'a i8`
- `impl<'a> Shl for i8`
- `impl<'a, 'b> Shl for &'b i8`
- `impl Shl for i8`
- `impl<'a> Shl for &'a i8`
- `impl<'a> Shl for i8`
- `impl<'a, 'b> Shl for &'b i8`
- `impl Shl for i8`
- `impl<'a> Shl for &'a i8`
- `impl<'a> Shl for i8`
- `impl<'a, 'b> Shl for &'b i8`
- `impl Shl for i8`
- `impl<'a> Shl for &'a i8`
- `impl<'a> Shl for i8`
- `impl<'a, 'b> Shl for &'b i8`
- `impl Shl for i8`
- `impl<'a> Shl for &'a i8`
- `impl<'a> Shl for i8`
- `impl<'a, 'b> Shl for &'b i8`
- `impl Shl for i8`
- `impl<'a> Shl for &'a i8`
- `impl<'a> Shl for i8`
- `impl<'a, 'b> Shl for &'b i8`
- `impl Shl for i8`
- `impl<'a> Shl for &'a i8`
- `impl<'a> Shl for i8`
- `impl<'a, 'b> Shl for &'b i8`
- `impl Shl for i8`
- `impl<'a> Shl for &'a i8`
- `impl<'a> Shl for i8`
- `impl<'a, 'b> Shl for &'b i8`
- `impl Shl for i8`
- `impl<'a> Shl for &'a i8`
- `impl<'a> Shl for i8`
- `impl<'a, 'b> Shl for &'b i8`
- `impl Shl for i16`
- `impl<'a> Shl for &'a i16`
- `impl<'a> Shl for i16`
- `impl<'a, 'b> Shl for &'b i16`
- `impl Shl for i16`
- `impl<'a> Shl for &'a i16`
- `impl<'a> Shl for i16`
- `impl<'a, 'b> Shl for &'b i16`
- `impl Shl for i16`
- `impl<'a> Shl for &'a i16`
- `impl<'a> Shl for i16`
- `impl<'a, 'b> Shl for &'b i16`
- `impl Shl for i16`
- `impl<'a> Shl for &'a i16`
- `impl<'a> Shl for i16`
- `impl<'a, 'b> Shl for &'b i16`
- `impl Shl for i16`
- `impl<'a> Shl for &'a i16`
- `impl<'a> Shl for i16`
- `impl<'a, 'b> Shl for &'b i16`
- `impl Shl for i16`
- `impl<'a> Shl for &'a i16`
- `impl<'a> Shl for i16`
- `impl<'a, 'b> Shl for &'b i16`
- `impl Shl for i16`
- `impl<'a> Shl for &'a i16`
- `impl<'a> Shl for i16`
- `impl<'a, 'b> Shl for &'b i16`
- `impl Shl for i16`
- `impl<'a> Shl for &'a i16`
- `impl<'a> Shl for i16`
- `impl<'a, 'b> Shl for &'b i16`
- `impl Shl for i16`
- `impl<'a> Shl for &'a i16`
- `impl<'a> Shl for i16`
- `impl<'a, 'b> Shl for &'b i16`
- `impl Shl for i16`
- `impl<'a> Shl for &'a i16`
- `impl<'a> Shl for i16`
- `impl<'a, 'b> Shl for &'b i16`
- `impl Shl for i32`
- `impl<'a> Shl for &'a i32`
- `impl<'a> Shl for i32`
- `impl<'a, 'b> Shl for &'b i32`
- `impl Shl for i32`
- `impl<'a> Shl for &'a i32`
- `impl<'a> Shl for i32`
- `impl<'a, 'b> Shl for &'b i32`
- `impl Shl for i32`
- `impl<'a> Shl for &'a i32`
- `impl<'a> Shl for i32`
- `impl<'a, 'b> Shl for &'b i32`
- `impl Shl for i32`
- `impl<'a> Shl for &'a i32`
- `impl<'a> Shl for i32`
- `impl<'a, 'b> Shl for &'b i32`
- `impl Shl for i32`
- `impl<'a> Shl for &'a i32`
- `impl<'a> Shl for i32`
- `impl<'a, 'b> Shl for &'b i32`
- `impl Shl for i32`
- `impl<'a> Shl for &'a i32`
- `impl<'a> Shl for i32`
- `impl<'a, 'b> Shl for &'b i32`
- `impl Shl for i32`
- `impl<'a> Shl for &'a i32`
- `impl<'a> Shl for i32`
- `impl<'a, 'b> Shl for &'b i32`
- `impl Shl for i32`
- `impl<'a> Shl for &'a i32`
- `impl<'a> Shl for i32`
- `impl<'a, 'b> Shl for &'b i32`
- `impl Shl for i32`
- `impl<'a> Shl for &'a i32`
- `impl<'a> Shl for i32`
- `impl<'a, 'b> Shl for &'b i32`
- `impl Shl for i32`
- `impl<'a> Shl for &'a i32`
- `impl<'a> Shl for i32`
- `impl<'a, 'b> Shl for &'b i32`
- `impl Shl for i64`
- `impl<'a> Shl for &'a i64`
- `impl<'a> Shl for i64`
- `impl<'a, 'b> Shl for &'b i64`
- `impl Shl for i64`
- `impl<'a> Shl for &'a i64`
- `impl<'a> Shl for i64`
- `impl<'a, 'b> Shl for &'b i64`
- `impl Shl for i64`
- `impl<'a> Shl for &'a i64`
- `impl<'a> Shl for i64`
- `impl<'a, 'b> Shl for &'b i64`
- `impl Shl for i64`
- `impl<'a> Shl for &'a i64`
- `impl<'a> Shl for i64`
- `impl<'a, 'b> Shl for &'b i64`
- `impl Shl for i64`
- `impl<'a> Shl for &'a i64`
- `impl<'a> Shl for i64`
- `impl<'a, 'b> Shl for &'b i64`
- `impl Shl for i64`
- `impl<'a> Shl for &'a i64`
- `impl<'a> Shl for i64`
- `impl<'a, 'b> Shl for &'b i64`
- `impl Shl for i64`
- `impl<'a> Shl for &'a i64`
- `impl<'a> Shl for i64`
- `impl<'a, 'b> Shl for &'b i64`
- `impl Shl for i64`
- `impl<'a> Shl for &'a i64`
- `impl<'a> Shl for i64`
- `impl<'a, 'b> Shl for &'b i64`
- `impl Shl for i64`
- `impl<'a> Shl for &'a i64`
- `impl<'a> Shl for i64`
- `impl<'a, 'b> Shl for &'b i64`
- `impl Shl for i64`
- `impl<'a> Shl for &'a i64`
- `impl<'a> Shl for i64`
- `impl<'a, 'b> Shl for &'b i64`
- `impl Shl for isize`
- `impl<'a> Shl for &'a isize`
- `impl<'a> Shl for isize`
- `impl<'a, 'b> Shl for &'b isize`
- `impl Shl for isize`
- `impl<'a> Shl for &'a isize`
- `impl<'a> Shl for isize`
- `impl<'a, 'b> Shl for &'b isize`
- `impl Shl for isize`
- `impl<'a> Shl for &'a isize`
- `impl<'a> Shl for isize`
- `impl<'a, 'b> Shl for &'b isize`
- `impl Shl for isize`
- `impl<'a> Shl for &'a isize`
- `impl<'a> Shl for isize`
- `impl<'a, 'b> Shl for &'b isize`
- `impl Shl for isize`
- `impl<'a> Shl for &'a isize`
- `impl<'a> Shl for isize`
- `impl<'a, 'b> Shl for &'b isize`
- `impl Shl for isize`
- `impl<'a> Shl for &'a isize`
- `impl<'a> Shl for isize`
- `impl<'a, 'b> Shl for &'b isize`
- `impl Shl for isize`
- `impl<'a> Shl for &'a isize`
- `impl<'a> Shl for isize`
- `impl<'a, 'b> Shl for &'b isize`
- `impl Shl for isize`
- `impl<'a> Shl for &'a isize`
- `impl<'a> Shl for isize`
- `impl<'a, 'b> Shl for &'b isize`
- `impl Shl for isize`
- `impl<'a> Shl for &'a isize`
- `impl<'a> Shl for isize`
- `impl<'a, 'b> Shl for &'b isize`
- `impl Shl for isize`
- `impl<'a> Shl for &'a isize`
- `impl<'a> Shl for isize`
- `impl<'a, 'b> Shl for &'b isize`
- `impl Shl for Wrapping<u8>`
- `impl Shl for Wrapping<u16>`
- `impl Shl for Wrapping<u32>`
- `impl Shl for Wrapping<u64>`
- `impl Shl for Wrapping<usize>`
- `impl Shl for Wrapping<i8>`
- `impl Shl for Wrapping<i16>`
- `impl Shl for Wrapping<i32>`
- `impl Shl for Wrapping<i64>`
- `impl Shl for Wrapping<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

## 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`)