1.8.0[][src]Trait nom::lib::std::ops::ShlAssign

#[lang = "shl_assign"]
pub trait ShlAssign<Rhs = Self> {
    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));

Required methods

fn shl_assign(&mut self, rhs: Rhs)

Performs the <<= operation.

Loading content...

Implementations on Foreign Types

impl ShlAssign<u64> for u64[src]

impl<'_> ShlAssign<&'_ i128> for isize[src]

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

impl<'_> ShlAssign<&'_ u128> for isize[src]

impl ShlAssign<u32> for i64[src]

impl<'_> ShlAssign<&'_ i128> for u64[src]

impl<'_> ShlAssign<&'_ i16> for u64[src]

impl<'_> ShlAssign<&'_ u128> for i128[src]

impl<'_> ShlAssign<&'_ i64> for i64[src]

impl ShlAssign<u8> for i64[src]

impl ShlAssign<u128> for usize[src]

impl ShlAssign<u64> for i8[src]

impl<'_> ShlAssign<&'_ i16> for u8[src]

impl ShlAssign<u16> for usize[src]

impl ShlAssign<i8> for u16[src]

impl<'_> ShlAssign<&'_ u8> for u64[src]

impl<'_> ShlAssign<&'_ u16> for i16[src]

impl<'_> ShlAssign<&'_ i128> for i8[src]

impl ShlAssign<i32> for i128[src]

impl<'_> ShlAssign<&'_ usize> for u64[src]

impl<'_> ShlAssign<&'_ u128> for u8[src]

impl<'_> ShlAssign<&'_ isize> for u32[src]

impl<'_> ShlAssign<&'_ u8> for i64[src]

impl<'_> ShlAssign<&'_ u64> for u32[src]

impl ShlAssign<usize> for i16[src]

impl<'_> ShlAssign<&'_ i128> for i32[src]

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

impl ShlAssign<i32> for u16[src]

impl<'_> ShlAssign<&'_ i128> for i64[src]

impl ShlAssign<i32> for i8[src]

impl ShlAssign<u32> for u8[src]

impl<'_> ShlAssign<&'_ i32> for i128[src]

impl ShlAssign<u128> for i128[src]

impl<'_> ShlAssign<&'_ u64> for u64[src]

impl<'_> ShlAssign<&'_ u32> for isize[src]

impl ShlAssign<usize> for u32[src]

impl<'_> ShlAssign<&'_ i8> for u32[src]

impl ShlAssign<u16> for i32[src]

impl<'_> ShlAssign<&'_ u32> for i16[src]

impl<'_> ShlAssign<&'_ u16> for u32[src]

impl ShlAssign<i32> for u128[src]

impl ShlAssign<u16> for u32[src]

impl<'_> ShlAssign<&'_ i16> for u32[src]

impl<'_> ShlAssign<&'_ i8> for i64[src]

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

impl ShlAssign<u32> for isize[src]

impl<'_> ShlAssign<&'_ isize> for u16[src]

impl ShlAssign<isize> for i16[src]

impl ShlAssign<u16> for u16[src]

impl ShlAssign<u32> for u128[src]

impl<'_> ShlAssign<&'_ u32> for i32[src]

impl ShlAssign<u8> for i8[src]

impl<'_> ShlAssign<&'_ i128> for u32[src]

impl ShlAssign<u16> for u8[src]

impl ShlAssign<u16> for i64[src]

impl ShlAssign<i8> for u8[src]

impl ShlAssign<u16> for isize[src]

impl ShlAssign<u64> for u16[src]

impl<'_> ShlAssign<&'_ u64> for u16[src]

impl ShlAssign<i16> for i16[src]

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

impl ShlAssign<u128> for i8[src]

impl ShlAssign<i16> for usize[src]

impl<'_> ShlAssign<&'_ i128> for u16[src]

impl ShlAssign<i64> for i128[src]

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

impl<'_> ShlAssign<&'_ i8> for u16[src]

impl<'_> ShlAssign<&'_ i64> for i32[src]

impl ShlAssign<i32> for i16[src]

impl ShlAssign<u16> for i128[src]

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

impl<'_> ShlAssign<&'_ i128> for usize[src]

impl ShlAssign<i8> for i64[src]

impl<'_> ShlAssign<&'_ i32> for u128[src]

impl<'_> ShlAssign<&'_ i64> for u128[src]

impl<'_> ShlAssign<&'_ u16> for i32[src]

impl ShlAssign<u8> for u16[src]

impl<'_> ShlAssign<&'_ u64> for usize[src]

impl ShlAssign<i64> for isize[src]

impl ShlAssign<isize> for usize[src]

impl<'_> ShlAssign<&'_ u8> for i8[src]

impl<'_> ShlAssign<&'_ u64> for i128[src]

impl ShlAssign<i128> for i64[src]

impl<'_> ShlAssign<&'_ u8> for isize[src]

impl<'_> ShlAssign<&'_ usize> for usize[src]

impl<'_> ShlAssign<&'_ u128> for usize[src]

impl<'_> ShlAssign<&'_ i128> for u128[src]

impl ShlAssign<i16> for u32[src]

impl<'_> ShlAssign<&'_ i64> for u8[src]

impl ShlAssign<i128> for u16[src]

impl ShlAssign<i32> for u64[src]

impl ShlAssign<u8> for isize[src]

impl ShlAssign<i16> for u16[src]

impl ShlAssign<i16> for u128[src]

impl ShlAssign<u8> for i32[src]

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

impl ShlAssign<i8> for usize[src]

impl ShlAssign<usize> for u128[src]

impl<'_> ShlAssign<&'_ u64> for i64[src]

impl ShlAssign<i8> for isize[src]

impl ShlAssign<usize> for u8[src]

impl<'_> ShlAssign<&'_ i16> for u16[src]

impl<'_> ShlAssign<&'_ u8> for i16[src]

impl ShlAssign<i16> for u64[src]

impl ShlAssign<u16> for u128[src]

impl<'_> ShlAssign<&'_ i64> for u64[src]

impl<'_> ShlAssign<&'_ usize> for i128[src]

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

impl ShlAssign<i64> for u128[src]

impl<'_> ShlAssign<&'_ i8> for i128[src]

impl ShlAssign<u16> for i8[src]

impl<'_> ShlAssign<&'_ i16> for i32[src]

impl<'_> ShlAssign<&'_ i8> for i16[src]

impl<'_> ShlAssign<&'_ u16> for u128[src]

impl ShlAssign<u64> for u8[src]

impl<'_> ShlAssign<&'_ u64> for isize[src]

impl<'_> ShlAssign<&'_ usize> for i32[src]

impl<'_> ShlAssign<&'_ u64> for i16[src]

impl ShlAssign<isize> for u16[src]

impl ShlAssign<i64> for i16[src]

impl<'_> ShlAssign<&'_ u16> for u16[src]

impl<'_> ShlAssign<&'_ u16> for i64[src]

impl<'_> ShlAssign<&'_ isize> for i128[src]

impl<'_> ShlAssign<&'_ u16> for u8[src]

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

impl ShlAssign<isize> for isize[src]

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

impl ShlAssign<u8> for u8[src]

impl ShlAssign<u64> for i16[src]

impl<'_> ShlAssign<&'_ i8> for u64[src]

impl ShlAssign<u128> for i16[src]

impl ShlAssign<i16> for i128[src]

impl ShlAssign<i32> for i32[src]

impl ShlAssign<i32> for isize[src]

impl<'_> ShlAssign<&'_ i32> for u32[src]

impl ShlAssign<isize> for u128[src]

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

impl ShlAssign<i16> for isize[src]

impl ShlAssign<i128> for u32[src]

impl<'_> ShlAssign<&'_ usize> for u32[src]

impl<'_> ShlAssign<&'_ i32> for usize[src]

impl<'_> ShlAssign<&'_ u8> for u128[src]

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

impl ShlAssign<u64> for u128[src]

impl<'_> ShlAssign<&'_ u128> for u128[src]

impl<'_> ShlAssign<&'_ u32> for u64[src]

impl ShlAssign<u32> for i128[src]

impl<'_> ShlAssign<&'_ i32> for i64[src]

impl ShlAssign<u32> for u64[src]

impl ShlAssign<u32> for usize[src]

impl ShlAssign<i128> for isize[src]

impl<'_> ShlAssign<&'_ u32> for i8[src]

impl ShlAssign<u64> for i64[src]

impl ShlAssign<i8> for u32[src]

impl<'_> ShlAssign<&'_ u64> for u128[src]

impl<'_> ShlAssign<&'_ i64> for u16[src]

impl<'_> ShlAssign<&'_ usize> for u8[src]

impl<'_> ShlAssign<&'_ i32> for u8[src]

impl<'_> ShlAssign<&'_ i64> for i16[src]

impl ShlAssign<usize> for i128[src]

impl<'_> ShlAssign<&'_ u16> for usize[src]

impl<'_> ShlAssign<&'_ i64> for usize[src]

impl ShlAssign<i128> for u8[src]

impl ShlAssign<i64> for usize[src]

impl<'_> ShlAssign<&'_ i16> for i16[src]

impl<'_> ShlAssign<&'_ i8> for u8[src]

impl<'_> ShlAssign<&'_ i64> for i128[src]

impl ShlAssign<i128> for usize[src]

impl<'_> ShlAssign<&'_ u16> for u64[src]

impl ShlAssign<isize> for i32[src]

impl<'_> ShlAssign<&'_ i32> for u64[src]

impl ShlAssign<isize> for i8[src]

impl<'_> ShlAssign<&'_ i16> for usize[src]

impl<'_> ShlAssign<&'_ i16> for isize[src]

impl ShlAssign<i64> for u64[src]

impl ShlAssign<u8> for u32[src]

impl ShlAssign<i8> for u128[src]

impl<'_> ShlAssign<&'_ u16> for i8[src]

impl ShlAssign<u128> for u32[src]

impl ShlAssign<i64> for u16[src]

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

impl<'_> ShlAssign<&'_ isize> for isize[src]

impl<'_> ShlAssign<&'_ u128> for i32[src]

impl<'_> ShlAssign<&'_ i64> for i8[src]

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

impl ShlAssign<u128> for u64[src]

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

impl ShlAssign<u64> for isize[src]

impl<'_> ShlAssign<&'_ isize> for i32[src]

impl ShlAssign<i64> for u8[src]

impl<'_> ShlAssign<&'_ usize> for u16[src]

impl<'_> ShlAssign<&'_ u32> for u128[src]

impl ShlAssign<u64> for u32[src]

impl<'_> ShlAssign<&'_ u64> for i8[src]

impl ShlAssign<isize> for u8[src]

impl<'_> ShlAssign<&'_ u8> for i32[src]

impl ShlAssign<u64> for i32[src]

impl ShlAssign<i128> for i32[src]

impl ShlAssign<i32> for usize[src]

impl<'_> ShlAssign<&'_ i16> for i128[src]

impl ShlAssign<i16> for u8[src]

impl<'_> ShlAssign<&'_ u8> for u32[src]

impl<'_> ShlAssign<&'_ i128> for u8[src]

impl<'_> ShlAssign<&'_ isize> for u128[src]

impl<'_> ShlAssign<&'_ usize> for i8[src]

impl<'_> ShlAssign<&'_ isize> for i8[src]

impl ShlAssign<i32> for u8[src]

impl<'_> ShlAssign<&'_ i8> for isize[src]

impl<'_> ShlAssign<&'_ i64> for isize[src]

impl<'_> ShlAssign<&'_ u32> for u16[src]

impl ShlAssign<isize> for u64[src]

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

impl ShlAssign<u128> for isize[src]

impl<'_> ShlAssign<&'_ i8> for i32[src]

impl<'_> ShlAssign<&'_ u128> for i16[src]

impl ShlAssign<u128> for u16[src]

impl<'_> ShlAssign<&'_ i8> for i8[src]

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

impl<'_> ShlAssign<&'_ u8> for usize[src]

impl<'_> ShlAssign<&'_ i32> for u16[src]

impl ShlAssign<usize> for i32[src]

impl ShlAssign<i32> for i64[src]

impl ShlAssign<u128> for i64[src]

impl<'_> ShlAssign<&'_ u64> for u8[src]

impl ShlAssign<i128> for i16[src]

impl ShlAssign<isize> for u32[src]

impl<'_> ShlAssign<&'_ isize> for u8[src]

impl<'_> ShlAssign<&'_ i32> for i8[src]

impl ShlAssign<usize> for i64[src]

impl ShlAssign<usize> for u64[src]

impl<'_> ShlAssign<&'_ u8> for i128[src]

impl ShlAssign<u32> for i16[src]

impl<'_> ShlAssign<&'_ u64> for i32[src]

impl ShlAssign<u8> for i128[src]

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

impl<'_> ShlAssign<&'_ i128> for i16[src]

impl<'_> ShlAssign<&'_ u32> for u8[src]

impl ShlAssign<usize> for u16[src]

impl<'_> ShlAssign<&'_ isize> for i64[src]

impl<'_> ShlAssign<&'_ u8> for u8[src]

impl<'_> ShlAssign<&'_ usize> for i16[src]

impl<'_> ShlAssign<&'_ i8> for usize[src]

impl<'_> ShlAssign<&'_ i64> for u32[src]

impl ShlAssign<i16> for i8[src]

impl ShlAssign<i128> for i128[src]

impl ShlAssign<u64> for i128[src]

impl ShlAssign<u64> for usize[src]

impl<'_> ShlAssign<&'_ i8> for u128[src]

impl ShlAssign<u8> for u128[src]

impl ShlAssign<i16> for i32[src]

impl<'_> ShlAssign<&'_ u128> for i8[src]

impl ShlAssign<u8> for u64[src]

impl ShlAssign<i8> for u64[src]

impl<'_> ShlAssign<&'_ i16> for i8[src]

impl<'_> ShlAssign<&'_ i32> for i32[src]

impl<'_> ShlAssign<&'_ isize> for u64[src]

impl ShlAssign<u128> for u128[src]

impl ShlAssign<i32> for u32[src]

impl ShlAssign<isize> for i128[src]

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

impl<'_> ShlAssign<&'_ isize> for i16[src]

impl<'_> ShlAssign<&'_ u32> for usize[src]

impl ShlAssign<u32> for i32[src]

impl<'_> ShlAssign<&'_ i32> for isize[src]

impl ShlAssign<i128> for u64[src]

impl<'_> ShlAssign<&'_ i16> for i64[src]

impl<'_> ShlAssign<&'_ u8> for u16[src]

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

impl<'_> ShlAssign<&'_ u32> for i128[src]

impl ShlAssign<i8> for i8[src]

impl ShlAssign<i64> for i8[src]

impl ShlAssign<i128> for i8[src]

impl ShlAssign<u32> for u32[src]

impl ShlAssign<i16> for i64[src]

impl ShlAssign<u8> for i16[src]

impl<'_> ShlAssign<&'_ u16> for i128[src]

impl<'_> ShlAssign<&'_ u128> for u64[src]

impl ShlAssign<i64> for i32[src]

impl<'_> ShlAssign<&'_ u32> for u32[src]

impl ShlAssign<u128> for u8[src]

impl<'_> ShlAssign<&'_ usize> for i64[src]

impl<'_> ShlAssign<&'_ usize> for isize[src]

impl ShlAssign<i8> for i32[src]

impl ShlAssign<i64> for u32[src]

impl ShlAssign<usize> for usize[src]

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

impl ShlAssign<u128> for i32[src]

impl<'_> ShlAssign<&'_ i32> for i16[src]

impl<'_> ShlAssign<&'_ u16> for isize[src]

impl ShlAssign<i64> for i64[src]

impl ShlAssign<i128> for u128[src]

impl<'_> ShlAssign<&'_ u128> for u32[src]

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

impl ShlAssign<u16> for u64[src]

impl ShlAssign<i8> for i128[src]

impl ShlAssign<i8> for i16[src]

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

impl<'_> ShlAssign<&'_ u128> for i64[src]

impl<'_> ShlAssign<&'_ u32> for i64[src]

impl<'_> ShlAssign<&'_ u128> for u16[src]

impl<'_> ShlAssign<&'_ i128> for i128[src]

impl ShlAssign<usize> for isize[src]

impl<'_> ShlAssign<&'_ usize> for u128[src]

impl ShlAssign<u32> for i8[src]

impl ShlAssign<u16> for i16[src]

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

impl<'_> ShlAssign<&'_ isize> for usize[src]

impl<'_> ShlAssign<&'_ i16> for u128[src]

impl ShlAssign<u32> for u16[src]

impl ShlAssign<usize> for i8[src]

impl ShlAssign<u8> for usize[src]

impl ShlAssign<isize> for i64[src]

Loading content...

Implementors

Loading content...