Trait creusot_contracts::std::ops::ShlAssign

1.8.0 · source ·
pub trait ShlAssign<Rhs = Self> {
    // Required method
    fn shl_assign(&mut self, rhs: Rhs);
}
Expand description

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§

1.8.0 · source

fn shl_assign(&mut self, rhs: Rhs)

Performs the <<= operation.

§Examples
let mut x: u8 = 5;
x <<= 1;
assert_eq!(x, 10);

let mut x: u8 = 1;
x <<= 1;
assert_eq!(x, 2);

Implementors§

1.8.0 · source§

impl ShlAssign for i8

1.8.0 · source§

impl ShlAssign for i16

1.8.0 · source§

impl ShlAssign for i32

1.8.0 · source§

impl ShlAssign for i64

1.8.0 · source§

impl ShlAssign for i128

1.8.0 · source§

impl ShlAssign for isize

1.8.0 · source§

impl ShlAssign for u8

1.8.0 · source§

impl ShlAssign for u16

1.8.0 · source§

impl ShlAssign for u32

1.8.0 · source§

impl ShlAssign for u64

1.8.0 · source§

impl ShlAssign for u128

1.8.0 · source§

impl ShlAssign for usize

1.22.0 · source§

impl ShlAssign<&i8> for i8

1.22.0 · source§

impl ShlAssign<&i8> for i16

1.22.0 · source§

impl ShlAssign<&i8> for i32

1.22.0 · source§

impl ShlAssign<&i8> for i64

1.22.0 · source§

impl ShlAssign<&i8> for i128

1.22.0 · source§

impl ShlAssign<&i8> for isize

1.22.0 · source§

impl ShlAssign<&i8> for u8

1.22.0 · source§

impl ShlAssign<&i8> for u16

1.22.0 · source§

impl ShlAssign<&i8> for u32

1.22.0 · source§

impl ShlAssign<&i8> for u64

1.22.0 · source§

impl ShlAssign<&i8> for u128

1.22.0 · source§

impl ShlAssign<&i8> for usize

1.22.0 · source§

impl ShlAssign<&i16> for i8

1.22.0 · source§

impl ShlAssign<&i16> for i16

1.22.0 · source§

impl ShlAssign<&i16> for i32

1.22.0 · source§

impl ShlAssign<&i16> for i64

1.22.0 · source§

impl ShlAssign<&i16> for i128

1.22.0 · source§

impl ShlAssign<&i16> for isize

1.22.0 · source§

impl ShlAssign<&i16> for u8

1.22.0 · source§

impl ShlAssign<&i16> for u16

1.22.0 · source§

impl ShlAssign<&i16> for u32

1.22.0 · source§

impl ShlAssign<&i16> for u64

1.22.0 · source§

impl ShlAssign<&i16> for u128

1.22.0 · source§

impl ShlAssign<&i16> for usize

1.22.0 · source§

impl ShlAssign<&i32> for i8

1.22.0 · source§

impl ShlAssign<&i32> for i16

1.22.0 · source§

impl ShlAssign<&i32> for i32

1.22.0 · source§

impl ShlAssign<&i32> for i64

1.22.0 · source§

impl ShlAssign<&i32> for i128

1.22.0 · source§

impl ShlAssign<&i32> for isize

1.22.0 · source§

impl ShlAssign<&i32> for u8

1.22.0 · source§

impl ShlAssign<&i32> for u16

1.22.0 · source§

impl ShlAssign<&i32> for u32

1.22.0 · source§

impl ShlAssign<&i32> for u64

1.22.0 · source§

impl ShlAssign<&i32> for u128

1.22.0 · source§

impl ShlAssign<&i32> for usize

1.22.0 · source§

impl ShlAssign<&i64> for i8

1.22.0 · source§

impl ShlAssign<&i64> for i16

1.22.0 · source§

impl ShlAssign<&i64> for i32

1.22.0 · source§

impl ShlAssign<&i64> for i64

1.22.0 · source§

impl ShlAssign<&i64> for i128

1.22.0 · source§

impl ShlAssign<&i64> for isize

1.22.0 · source§

impl ShlAssign<&i64> for u8

1.22.0 · source§

impl ShlAssign<&i64> for u16

1.22.0 · source§

impl ShlAssign<&i64> for u32

1.22.0 · source§

impl ShlAssign<&i64> for u64

1.22.0 · source§

impl ShlAssign<&i64> for u128

1.22.0 · source§

impl ShlAssign<&i64> for usize

1.22.0 · source§

impl ShlAssign<&i128> for i8

1.22.0 · source§

impl ShlAssign<&i128> for i16

1.22.0 · source§

impl ShlAssign<&i128> for i32

1.22.0 · source§

impl ShlAssign<&i128> for i64

1.22.0 · source§

impl ShlAssign<&i128> for i128

1.22.0 · source§

impl ShlAssign<&i128> for isize

1.22.0 · source§

impl ShlAssign<&i128> for u8

1.22.0 · source§

impl ShlAssign<&i128> for u16

1.22.0 · source§

impl ShlAssign<&i128> for u32

1.22.0 · source§

impl ShlAssign<&i128> for u64

1.22.0 · source§

impl ShlAssign<&i128> for u128

1.22.0 · source§

impl ShlAssign<&i128> for usize

1.22.0 · source§

impl ShlAssign<&isize> for i8

1.22.0 · source§

impl ShlAssign<&isize> for i16

1.22.0 · source§

impl ShlAssign<&isize> for i32

1.22.0 · source§

impl ShlAssign<&isize> for i64

1.22.0 · source§

impl ShlAssign<&isize> for i128

1.22.0 · source§

impl ShlAssign<&isize> for isize

1.22.0 · source§

impl ShlAssign<&isize> for u8

1.22.0 · source§

impl ShlAssign<&isize> for u16

1.22.0 · source§

impl ShlAssign<&isize> for u32

1.22.0 · source§

impl ShlAssign<&isize> for u64

1.22.0 · source§

impl ShlAssign<&isize> for u128

1.22.0 · source§

impl ShlAssign<&isize> for usize

1.22.0 · source§

impl ShlAssign<&u8> for i8

1.22.0 · source§

impl ShlAssign<&u8> for i16

1.22.0 · source§

impl ShlAssign<&u8> for i32

1.22.0 · source§

impl ShlAssign<&u8> for i64

1.22.0 · source§

impl ShlAssign<&u8> for i128

1.22.0 · source§

impl ShlAssign<&u8> for isize

1.22.0 · source§

impl ShlAssign<&u8> for u8

1.22.0 · source§

impl ShlAssign<&u8> for u16

1.22.0 · source§

impl ShlAssign<&u8> for u32

1.22.0 · source§

impl ShlAssign<&u8> for u64

1.22.0 · source§

impl ShlAssign<&u8> for u128

1.22.0 · source§

impl ShlAssign<&u8> for usize

1.22.0 · source§

impl ShlAssign<&u16> for i8

1.22.0 · source§

impl ShlAssign<&u16> for i16

1.22.0 · source§

impl ShlAssign<&u16> for i32

1.22.0 · source§

impl ShlAssign<&u16> for i64

1.22.0 · source§

impl ShlAssign<&u16> for i128

1.22.0 · source§

impl ShlAssign<&u16> for isize

1.22.0 · source§

impl ShlAssign<&u16> for u8

1.22.0 · source§

impl ShlAssign<&u16> for u16

1.22.0 · source§

impl ShlAssign<&u16> for u32

1.22.0 · source§

impl ShlAssign<&u16> for u64

1.22.0 · source§

impl ShlAssign<&u16> for u128

1.22.0 · source§

impl ShlAssign<&u16> for usize

1.22.0 · source§

impl ShlAssign<&u32> for i8

1.22.0 · source§

impl ShlAssign<&u32> for i16

1.22.0 · source§

impl ShlAssign<&u32> for i32

1.22.0 · source§

impl ShlAssign<&u32> for i64

1.22.0 · source§

impl ShlAssign<&u32> for i128

1.22.0 · source§

impl ShlAssign<&u32> for isize

1.22.0 · source§

impl ShlAssign<&u32> for u8

1.22.0 · source§

impl ShlAssign<&u32> for u16

1.22.0 · source§

impl ShlAssign<&u32> for u32

1.22.0 · source§

impl ShlAssign<&u32> for u64

1.22.0 · source§

impl ShlAssign<&u32> for u128

1.22.0 · source§

impl ShlAssign<&u32> for usize

1.22.0 · source§

impl ShlAssign<&u64> for i8

1.22.0 · source§

impl ShlAssign<&u64> for i16

1.22.0 · source§

impl ShlAssign<&u64> for i32

1.22.0 · source§

impl ShlAssign<&u64> for i64

1.22.0 · source§

impl ShlAssign<&u64> for i128

1.22.0 · source§

impl ShlAssign<&u64> for isize

1.22.0 · source§

impl ShlAssign<&u64> for u8

1.22.0 · source§

impl ShlAssign<&u64> for u16

1.22.0 · source§

impl ShlAssign<&u64> for u32

1.22.0 · source§

impl ShlAssign<&u64> for u64

1.22.0 · source§

impl ShlAssign<&u64> for u128

1.22.0 · source§

impl ShlAssign<&u64> for usize

1.22.0 · source§

impl ShlAssign<&u128> for i8

1.22.0 · source§

impl ShlAssign<&u128> for i16

1.22.0 · source§

impl ShlAssign<&u128> for i32

1.22.0 · source§

impl ShlAssign<&u128> for i64

1.22.0 · source§

impl ShlAssign<&u128> for i128

1.22.0 · source§

impl ShlAssign<&u128> for isize

1.22.0 · source§

impl ShlAssign<&u128> for u8

1.22.0 · source§

impl ShlAssign<&u128> for u16

1.22.0 · source§

impl ShlAssign<&u128> for u32

1.22.0 · source§

impl ShlAssign<&u128> for u64

1.22.0 · source§

impl ShlAssign<&u128> for u128

1.22.0 · source§

impl ShlAssign<&u128> for usize

1.22.0 · source§

impl ShlAssign<&usize> for i8

1.22.0 · source§

impl ShlAssign<&usize> for i16

1.22.0 · source§

impl ShlAssign<&usize> for i32

1.22.0 · source§

impl ShlAssign<&usize> for i64

1.22.0 · source§

impl ShlAssign<&usize> for i128

1.22.0 · source§

impl ShlAssign<&usize> for isize

1.22.0 · source§

impl ShlAssign<&usize> for u8

1.22.0 · source§

impl ShlAssign<&usize> for u16

1.22.0 · source§

impl ShlAssign<&usize> for u32

1.22.0 · source§

impl ShlAssign<&usize> for u64

1.22.0 · source§

impl ShlAssign<&usize> for u128

1.22.0 · source§

impl ShlAssign<&usize> for usize

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<i8>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<i16>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<i32>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<i64>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<i128>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<isize>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<u8>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<u16>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<u32>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<u64>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<u128>

1.22.0 · source§

impl ShlAssign<&usize> for Wrapping<usize>

1.8.0 · source§

impl ShlAssign<i8> for i16

1.8.0 · source§

impl ShlAssign<i8> for i32

1.8.0 · source§

impl ShlAssign<i8> for i64

1.8.0 · source§

impl ShlAssign<i8> for i128

1.8.0 · source§

impl ShlAssign<i8> for isize

1.8.0 · source§

impl ShlAssign<i8> for u8

1.8.0 · source§

impl ShlAssign<i8> for u16

1.8.0 · source§

impl ShlAssign<i8> for u32

1.8.0 · source§

impl ShlAssign<i8> for u64

1.8.0 · source§

impl ShlAssign<i8> for u128

1.8.0 · source§

impl ShlAssign<i8> for usize

source§

impl ShlAssign<i8> for BigInt

source§

impl ShlAssign<i8> for BigUint

1.8.0 · source§

impl ShlAssign<i16> for i8

1.8.0 · source§

impl ShlAssign<i16> for i32

1.8.0 · source§

impl ShlAssign<i16> for i64

1.8.0 · source§

impl ShlAssign<i16> for i128

1.8.0 · source§

impl ShlAssign<i16> for isize

1.8.0 · source§

impl ShlAssign<i16> for u8

1.8.0 · source§

impl ShlAssign<i16> for u16

1.8.0 · source§

impl ShlAssign<i16> for u32

1.8.0 · source§

impl ShlAssign<i16> for u64

1.8.0 · source§

impl ShlAssign<i16> for u128

1.8.0 · source§

impl ShlAssign<i16> for usize

source§

impl ShlAssign<i16> for BigInt

source§

impl ShlAssign<i16> for BigUint

1.8.0 · source§

impl ShlAssign<i32> for i8

1.8.0 · source§

impl ShlAssign<i32> for i16

1.8.0 · source§

impl ShlAssign<i32> for i64

1.8.0 · source§

impl ShlAssign<i32> for i128

1.8.0 · source§

impl ShlAssign<i32> for isize

1.8.0 · source§

impl ShlAssign<i32> for u8

1.8.0 · source§

impl ShlAssign<i32> for u16

1.8.0 · source§

impl ShlAssign<i32> for u32

1.8.0 · source§

impl ShlAssign<i32> for u64

1.8.0 · source§

impl ShlAssign<i32> for u128

1.8.0 · source§

impl ShlAssign<i32> for usize

source§

impl ShlAssign<i32> for BigInt

source§

impl ShlAssign<i32> for BigUint

1.8.0 · source§

impl ShlAssign<i64> for i8

1.8.0 · source§

impl ShlAssign<i64> for i16

1.8.0 · source§

impl ShlAssign<i64> for i32

1.8.0 · source§

impl ShlAssign<i64> for i128

1.8.0 · source§

impl ShlAssign<i64> for isize

1.8.0 · source§

impl ShlAssign<i64> for u8

1.8.0 · source§

impl ShlAssign<i64> for u16

1.8.0 · source§

impl ShlAssign<i64> for u32

1.8.0 · source§

impl ShlAssign<i64> for u64

1.8.0 · source§

impl ShlAssign<i64> for u128

1.8.0 · source§

impl ShlAssign<i64> for usize

source§

impl ShlAssign<i64> for BigInt

source§

impl ShlAssign<i64> for BigUint

1.8.0 · source§

impl ShlAssign<i128> for i8

1.8.0 · source§

impl ShlAssign<i128> for i16

1.8.0 · source§

impl ShlAssign<i128> for i32

1.8.0 · source§

impl ShlAssign<i128> for i64

1.8.0 · source§

impl ShlAssign<i128> for isize

1.8.0 · source§

impl ShlAssign<i128> for u8

1.8.0 · source§

impl ShlAssign<i128> for u16

1.8.0 · source§

impl ShlAssign<i128> for u32

1.8.0 · source§

impl ShlAssign<i128> for u64

1.8.0 · source§

impl ShlAssign<i128> for u128

1.8.0 · source§

impl ShlAssign<i128> for usize

source§

impl ShlAssign<i128> for BigInt

source§

impl ShlAssign<i128> for BigUint

1.8.0 · source§

impl ShlAssign<isize> for i8

1.8.0 · source§

impl ShlAssign<isize> for i16

1.8.0 · source§

impl ShlAssign<isize> for i32

1.8.0 · source§

impl ShlAssign<isize> for i64

1.8.0 · source§

impl ShlAssign<isize> for i128

1.8.0 · source§

impl ShlAssign<isize> for u8

1.8.0 · source§

impl ShlAssign<isize> for u16

1.8.0 · source§

impl ShlAssign<isize> for u32

1.8.0 · source§

impl ShlAssign<isize> for u64

1.8.0 · source§

impl ShlAssign<isize> for u128

1.8.0 · source§

impl ShlAssign<isize> for usize

source§

impl ShlAssign<isize> for BigInt

source§

impl ShlAssign<isize> for BigUint

1.8.0 · source§

impl ShlAssign<u8> for i8

1.8.0 · source§

impl ShlAssign<u8> for i16

1.8.0 · source§

impl ShlAssign<u8> for i32

1.8.0 · source§

impl ShlAssign<u8> for i64

1.8.0 · source§

impl ShlAssign<u8> for i128

1.8.0 · source§

impl ShlAssign<u8> for isize

1.8.0 · source§

impl ShlAssign<u8> for u16

1.8.0 · source§

impl ShlAssign<u8> for u32

1.8.0 · source§

impl ShlAssign<u8> for u64

1.8.0 · source§

impl ShlAssign<u8> for u128

1.8.0 · source§

impl ShlAssign<u8> for usize

source§

impl ShlAssign<u8> for BigInt

source§

impl ShlAssign<u8> for BigUint

1.8.0 · source§

impl ShlAssign<u16> for i8

1.8.0 · source§

impl ShlAssign<u16> for i16

1.8.0 · source§

impl ShlAssign<u16> for i32

1.8.0 · source§

impl ShlAssign<u16> for i64

1.8.0 · source§

impl ShlAssign<u16> for i128

1.8.0 · source§

impl ShlAssign<u16> for isize

1.8.0 · source§

impl ShlAssign<u16> for u8

1.8.0 · source§

impl ShlAssign<u16> for u32

1.8.0 · source§

impl ShlAssign<u16> for u64

1.8.0 · source§

impl ShlAssign<u16> for u128

1.8.0 · source§

impl ShlAssign<u16> for usize

source§

impl ShlAssign<u16> for BigInt

source§

impl ShlAssign<u16> for BigUint

1.8.0 · source§

impl ShlAssign<u32> for i8

1.8.0 · source§

impl ShlAssign<u32> for i16

1.8.0 · source§

impl ShlAssign<u32> for i32

1.8.0 · source§

impl ShlAssign<u32> for i64

1.8.0 · source§

impl ShlAssign<u32> for i128

1.8.0 · source§

impl ShlAssign<u32> for isize

1.8.0 · source§

impl ShlAssign<u32> for u8

1.8.0 · source§

impl ShlAssign<u32> for u16

1.8.0 · source§

impl ShlAssign<u32> for u64

1.8.0 · source§

impl ShlAssign<u32> for u128

1.8.0 · source§

impl ShlAssign<u32> for usize

source§

impl ShlAssign<u32> for BigInt

source§

impl ShlAssign<u32> for BigUint

1.8.0 · source§

impl ShlAssign<u64> for i8

1.8.0 · source§

impl ShlAssign<u64> for i16

1.8.0 · source§

impl ShlAssign<u64> for i32

1.8.0 · source§

impl ShlAssign<u64> for i64

1.8.0 · source§

impl ShlAssign<u64> for i128

1.8.0 · source§

impl ShlAssign<u64> for isize

1.8.0 · source§

impl ShlAssign<u64> for u8

1.8.0 · source§

impl ShlAssign<u64> for u16

1.8.0 · source§

impl ShlAssign<u64> for u32

1.8.0 · source§

impl ShlAssign<u64> for u128

1.8.0 · source§

impl ShlAssign<u64> for usize

source§

impl ShlAssign<u64> for BigInt

source§

impl ShlAssign<u64> for BigUint

1.8.0 · source§

impl ShlAssign<u128> for i8

1.8.0 · source§

impl ShlAssign<u128> for i16

1.8.0 · source§

impl ShlAssign<u128> for i32

1.8.0 · source§

impl ShlAssign<u128> for i64

1.8.0 · source§

impl ShlAssign<u128> for i128

1.8.0 · source§

impl ShlAssign<u128> for isize

1.8.0 · source§

impl ShlAssign<u128> for u8

1.8.0 · source§

impl ShlAssign<u128> for u16

1.8.0 · source§

impl ShlAssign<u128> for u32

1.8.0 · source§

impl ShlAssign<u128> for u64

1.8.0 · source§

impl ShlAssign<u128> for usize

source§

impl ShlAssign<u128> for BigInt

source§

impl ShlAssign<u128> for BigUint

1.8.0 · source§

impl ShlAssign<usize> for i8

1.8.0 · source§

impl ShlAssign<usize> for i16

1.8.0 · source§

impl ShlAssign<usize> for i32

1.8.0 · source§

impl ShlAssign<usize> for i64

1.8.0 · source§

impl ShlAssign<usize> for i128

1.8.0 · source§

impl ShlAssign<usize> for isize

1.8.0 · source§

impl ShlAssign<usize> for u8

1.8.0 · source§

impl ShlAssign<usize> for u16

1.8.0 · source§

impl ShlAssign<usize> for u32

1.8.0 · source§

impl ShlAssign<usize> for u64

1.8.0 · source§

impl ShlAssign<usize> for u128

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<i8>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<i16>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<i32>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<i64>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<i128>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<isize>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<u8>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<u16>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<u32>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<u64>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<u128>

1.8.0 · source§

impl ShlAssign<usize> for Wrapping<usize>

source§

impl ShlAssign<usize> for BigInt

source§

impl ShlAssign<usize> for BigUint

source§

impl<'b> ShlAssign<&'b i8> for BigInt

source§

impl<'b> ShlAssign<&'b i8> for BigUint

source§

impl<'b> ShlAssign<&'b i16> for BigInt

source§

impl<'b> ShlAssign<&'b i16> for BigUint

source§

impl<'b> ShlAssign<&'b i32> for BigInt

source§

impl<'b> ShlAssign<&'b i32> for BigUint

source§

impl<'b> ShlAssign<&'b i64> for BigInt

source§

impl<'b> ShlAssign<&'b i64> for BigUint

source§

impl<'b> ShlAssign<&'b i128> for BigInt

source§

impl<'b> ShlAssign<&'b i128> for BigUint

source§

impl<'b> ShlAssign<&'b isize> for BigInt

source§

impl<'b> ShlAssign<&'b isize> for BigUint

source§

impl<'b> ShlAssign<&'b u8> for BigInt

source§

impl<'b> ShlAssign<&'b u8> for BigUint

source§

impl<'b> ShlAssign<&'b u16> for BigInt

source§

impl<'b> ShlAssign<&'b u16> for BigUint

source§

impl<'b> ShlAssign<&'b u32> for BigInt

source§

impl<'b> ShlAssign<&'b u32> for BigUint

source§

impl<'b> ShlAssign<&'b u64> for BigInt

source§

impl<'b> ShlAssign<&'b u64> for BigUint

source§

impl<'b> ShlAssign<&'b u128> for BigInt

source§

impl<'b> ShlAssign<&'b u128> for BigUint

source§

impl<'b> ShlAssign<&'b usize> for BigInt

source§

impl<'b> ShlAssign<&'b usize> for BigUint

source§

impl<T, U, const N: usize> ShlAssign<U> for Simd<T, N>
where Simd<T, N>: Shl<U, Output = Simd<T, N>>, T: SimdElement, LaneCount<N>: SupportedLaneCount,