scale_info::prelude::ops

Trait Shr

1.0.0 · Source
pub trait Shr<Rhs = Self> {
    type Output;

    // Required method
    fn shr(self, rhs: Rhs) -> Self::Output;
}
Expand description

The right shift operator >>. Note that because this trait is implemented for all integer types with multiple right-hand-side types, Rust’s type checker has special handling for _ >> _, setting the result type for integer operations to the type of the left-hand-side operand. This means that though a >> b and a.shr(b) are one and the same from an evaluation standpoint, they are different when it comes to type inference.

§Examples

An implementation of Shr that lifts the >> operation on integers to a wrapper around usize.

use std::ops::Shr;

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

impl Shr<Scalar> for Scalar {
    type Output = Self;

    fn shr(self, Self(rhs): Self) -> Self::Output {
        let Self(lhs) = self;
        Self(lhs >> rhs)
    }
}

assert_eq!(Scalar(16) >> Scalar(2), Scalar(4));

An implementation of Shr that spins a vector rightward by a given amount.

use std::ops::Shr;

#[derive(PartialEq, Debug)]
struct SpinVector<T: Clone> {
    vec: Vec<T>,
}

impl<T: Clone> Shr<usize> for SpinVector<T> {
    type Output = Self;

    fn shr(self, rhs: usize) -> Self::Output {
        // Rotate the vector by `rhs` places.
        let (a, b) = self.vec.split_at(self.vec.len() - rhs);
        let mut spun_vector = vec![];
        spun_vector.extend_from_slice(b);
        spun_vector.extend_from_slice(a);
        Self { vec: spun_vector }
    }
}

assert_eq!(SpinVector { vec: vec![0, 1, 2, 3, 4] } >> 2,
           SpinVector { vec: vec![3, 4, 0, 1, 2] });

Required Associated Types§

1.0.0 · Source

type Output

The resulting type after applying the >> operator.

Required Methods§

1.0.0 · Source

fn shr(self, rhs: Rhs) -> Self::Output

Performs the >> operation.

§Examples
assert_eq!(5u8 >> 1, 2);
assert_eq!(2u8 >> 1, 1);

Implementors§

1.0.0 · Source§

impl Shr for i8

1.0.0 · Source§

impl Shr for i16

1.0.0 · Source§

impl Shr for i32

1.0.0 · Source§

impl Shr for i64

1.0.0 · Source§

impl Shr for i128

1.0.0 · Source§

impl Shr for isize

1.0.0 · Source§

impl Shr for u8

1.0.0 · Source§

impl Shr for u16

1.0.0 · Source§

impl Shr for u32

1.0.0 · Source§

impl Shr for u64

1.0.0 · Source§

impl Shr for u128

1.0.0 · Source§

impl Shr for usize

1.0.0 · Source§

impl Shr<&i8> for &i8

1.0.0 · Source§

impl Shr<&i8> for &i16

1.0.0 · Source§

impl Shr<&i8> for &i32

1.0.0 · Source§

impl Shr<&i8> for &i64

1.0.0 · Source§

impl Shr<&i8> for &i128

1.0.0 · Source§

impl Shr<&i8> for &isize

1.0.0 · Source§

impl Shr<&i8> for &u8

Source§

type Output = <u8 as Shr<i8>>::Output

1.0.0 · Source§

impl Shr<&i8> for &u16

1.0.0 · Source§

impl Shr<&i8> for &u32

1.0.0 · Source§

impl Shr<&i8> for &u64

1.0.0 · Source§

impl Shr<&i8> for &u128

1.0.0 · Source§

impl Shr<&i8> for &usize

1.0.0 · Source§

impl Shr<&i8> for i8

1.0.0 · Source§

impl Shr<&i8> for i16

1.0.0 · Source§

impl Shr<&i8> for i32

1.0.0 · Source§

impl Shr<&i8> for i64

1.0.0 · Source§

impl Shr<&i8> for i128

1.0.0 · Source§

impl Shr<&i8> for isize

1.0.0 · Source§

impl Shr<&i8> for u8

Source§

type Output = <u8 as Shr<i8>>::Output

1.0.0 · Source§

impl Shr<&i8> for u16

1.0.0 · Source§

impl Shr<&i8> for u32

1.0.0 · Source§

impl Shr<&i8> for u64

1.0.0 · Source§

impl Shr<&i8> for u128

1.0.0 · Source§

impl Shr<&i8> for usize

1.0.0 · Source§

impl Shr<&i16> for &i8

1.0.0 · Source§

impl Shr<&i16> for &i16

1.0.0 · Source§

impl Shr<&i16> for &i32

1.0.0 · Source§

impl Shr<&i16> for &i64

1.0.0 · Source§

impl Shr<&i16> for &i128

1.0.0 · Source§

impl Shr<&i16> for &isize

1.0.0 · Source§

impl Shr<&i16> for &u8

1.0.0 · Source§

impl Shr<&i16> for &u16

1.0.0 · Source§

impl Shr<&i16> for &u32

1.0.0 · Source§

impl Shr<&i16> for &u64

1.0.0 · Source§

impl Shr<&i16> for &u128

1.0.0 · Source§

impl Shr<&i16> for &usize

1.0.0 · Source§

impl Shr<&i16> for i8

1.0.0 · Source§

impl Shr<&i16> for i16

1.0.0 · Source§

impl Shr<&i16> for i32

1.0.0 · Source§

impl Shr<&i16> for i64

1.0.0 · Source§

impl Shr<&i16> for i128

1.0.0 · Source§

impl Shr<&i16> for isize

1.0.0 · Source§

impl Shr<&i16> for u8

1.0.0 · Source§

impl Shr<&i16> for u16

1.0.0 · Source§

impl Shr<&i16> for u32

1.0.0 · Source§

impl Shr<&i16> for u64

1.0.0 · Source§

impl Shr<&i16> for u128

1.0.0 · Source§

impl Shr<&i16> for usize

1.0.0 · Source§

impl Shr<&i32> for &i8

1.0.0 · Source§

impl Shr<&i32> for &i16

1.0.0 · Source§

impl Shr<&i32> for &i32

1.0.0 · Source§

impl Shr<&i32> for &i64

1.0.0 · Source§

impl Shr<&i32> for &i128

1.0.0 · Source§

impl Shr<&i32> for &isize

1.0.0 · Source§

impl Shr<&i32> for &u8

1.0.0 · Source§

impl Shr<&i32> for &u16

1.0.0 · Source§

impl Shr<&i32> for &u32

1.0.0 · Source§

impl Shr<&i32> for &u64

1.0.0 · Source§

impl Shr<&i32> for &u128

1.0.0 · Source§

impl Shr<&i32> for &usize

1.0.0 · Source§

impl Shr<&i32> for i8

1.0.0 · Source§

impl Shr<&i32> for i16

1.0.0 · Source§

impl Shr<&i32> for i32

1.0.0 · Source§

impl Shr<&i32> for i64

1.0.0 · Source§

impl Shr<&i32> for i128

1.0.0 · Source§

impl Shr<&i32> for isize

1.0.0 · Source§

impl Shr<&i32> for u8

1.0.0 · Source§

impl Shr<&i32> for u16

1.0.0 · Source§

impl Shr<&i32> for u32

1.0.0 · Source§

impl Shr<&i32> for u64

1.0.0 · Source§

impl Shr<&i32> for u128

1.0.0 · Source§

impl Shr<&i32> for usize

1.0.0 · Source§

impl Shr<&i64> for &i8

1.0.0 · Source§

impl Shr<&i64> for &i16

1.0.0 · Source§

impl Shr<&i64> for &i32

1.0.0 · Source§

impl Shr<&i64> for &i64

1.0.0 · Source§

impl Shr<&i64> for &i128

1.0.0 · Source§

impl Shr<&i64> for &isize

1.0.0 · Source§

impl Shr<&i64> for &u8

1.0.0 · Source§

impl Shr<&i64> for &u16

1.0.0 · Source§

impl Shr<&i64> for &u32

1.0.0 · Source§

impl Shr<&i64> for &u64

1.0.0 · Source§

impl Shr<&i64> for &u128

1.0.0 · Source§

impl Shr<&i64> for &usize

1.0.0 · Source§

impl Shr<&i64> for i8

1.0.0 · Source§

impl Shr<&i64> for i16

1.0.0 · Source§

impl Shr<&i64> for i32

1.0.0 · Source§

impl Shr<&i64> for i64

1.0.0 · Source§

impl Shr<&i64> for i128

1.0.0 · Source§

impl Shr<&i64> for isize

1.0.0 · Source§

impl Shr<&i64> for u8

1.0.0 · Source§

impl Shr<&i64> for u16

1.0.0 · Source§

impl Shr<&i64> for u32

1.0.0 · Source§

impl Shr<&i64> for u64

1.0.0 · Source§

impl Shr<&i64> for u128

1.0.0 · Source§

impl Shr<&i64> for usize

1.0.0 · Source§

impl Shr<&i128> for &i8

1.0.0 · Source§

impl Shr<&i128> for &i16

1.0.0 · Source§

impl Shr<&i128> for &i32

1.0.0 · Source§

impl Shr<&i128> for &i64

1.0.0 · Source§

impl Shr<&i128> for &i128

1.0.0 · Source§

impl Shr<&i128> for &isize

1.0.0 · Source§

impl Shr<&i128> for &u8

1.0.0 · Source§

impl Shr<&i128> for &u16

1.0.0 · Source§

impl Shr<&i128> for &u32

1.0.0 · Source§

impl Shr<&i128> for &u64

1.0.0 · Source§

impl Shr<&i128> for &u128

1.0.0 · Source§

impl Shr<&i128> for &usize

1.0.0 · Source§

impl Shr<&i128> for i8

1.0.0 · Source§

impl Shr<&i128> for i16

1.0.0 · Source§

impl Shr<&i128> for i32

1.0.0 · Source§

impl Shr<&i128> for i64

1.0.0 · Source§

impl Shr<&i128> for i128

1.0.0 · Source§

impl Shr<&i128> for isize

1.0.0 · Source§

impl Shr<&i128> for u8

1.0.0 · Source§

impl Shr<&i128> for u16

1.0.0 · Source§

impl Shr<&i128> for u32

1.0.0 · Source§

impl Shr<&i128> for u64

1.0.0 · Source§

impl Shr<&i128> for u128

1.0.0 · Source§

impl Shr<&i128> for usize

1.0.0 · Source§

impl Shr<&isize> for &i8

1.0.0 · Source§

impl Shr<&isize> for &i16

1.0.0 · Source§

impl Shr<&isize> for &i32

1.0.0 · Source§

impl Shr<&isize> for &i64

1.0.0 · Source§

impl Shr<&isize> for &i128

1.0.0 · Source§

impl Shr<&isize> for &isize

1.0.0 · Source§

impl Shr<&isize> for &u8

1.0.0 · Source§

impl Shr<&isize> for &u16

1.0.0 · Source§

impl Shr<&isize> for &u32

1.0.0 · Source§

impl Shr<&isize> for &u64

1.0.0 · Source§

impl Shr<&isize> for &u128

1.0.0 · Source§

impl Shr<&isize> for &usize

1.0.0 · Source§

impl Shr<&isize> for i8

1.0.0 · Source§

impl Shr<&isize> for i16

1.0.0 · Source§

impl Shr<&isize> for i32

1.0.0 · Source§

impl Shr<&isize> for i64

1.0.0 · Source§

impl Shr<&isize> for i128

1.0.0 · Source§

impl Shr<&isize> for isize

1.0.0 · Source§

impl Shr<&isize> for u8

1.0.0 · Source§

impl Shr<&isize> for u16

1.0.0 · Source§

impl Shr<&isize> for u32

1.0.0 · Source§

impl Shr<&isize> for u64

1.0.0 · Source§

impl Shr<&isize> for u128

1.0.0 · Source§

impl Shr<&isize> for usize

1.0.0 · Source§

impl Shr<&u8> for &i8

Source§

type Output = <i8 as Shr<u8>>::Output

1.0.0 · Source§

impl Shr<&u8> for &i16

1.0.0 · Source§

impl Shr<&u8> for &i32

1.0.0 · Source§

impl Shr<&u8> for &i64

1.0.0 · Source§

impl Shr<&u8> for &i128

1.0.0 · Source§

impl Shr<&u8> for &isize

1.0.0 · Source§

impl Shr<&u8> for &u8

1.0.0 · Source§

impl Shr<&u8> for &u16

1.0.0 · Source§

impl Shr<&u8> for &u32

1.0.0 · Source§

impl Shr<&u8> for &u64

1.0.0 · Source§

impl Shr<&u8> for &u128

1.0.0 · Source§

impl Shr<&u8> for &usize

1.0.0 · Source§

impl Shr<&u8> for i8

Source§

type Output = <i8 as Shr<u8>>::Output

1.0.0 · Source§

impl Shr<&u8> for i16

1.0.0 · Source§

impl Shr<&u8> for i32

1.0.0 · Source§

impl Shr<&u8> for i64

1.0.0 · Source§

impl Shr<&u8> for i128

1.0.0 · Source§

impl Shr<&u8> for isize

1.0.0 · Source§

impl Shr<&u8> for u8

1.0.0 · Source§

impl Shr<&u8> for u16

1.0.0 · Source§

impl Shr<&u8> for u32

1.0.0 · Source§

impl Shr<&u8> for u64

1.0.0 · Source§

impl Shr<&u8> for u128

1.0.0 · Source§

impl Shr<&u8> for usize

1.0.0 · Source§

impl Shr<&u16> for &i8

1.0.0 · Source§

impl Shr<&u16> for &i16

1.0.0 · Source§

impl Shr<&u16> for &i32

1.0.0 · Source§

impl Shr<&u16> for &i64

1.0.0 · Source§

impl Shr<&u16> for &i128

1.0.0 · Source§

impl Shr<&u16> for &isize

1.0.0 · Source§

impl Shr<&u16> for &u8

1.0.0 · Source§

impl Shr<&u16> for &u16

1.0.0 · Source§

impl Shr<&u16> for &u32

1.0.0 · Source§

impl Shr<&u16> for &u64

1.0.0 · Source§

impl Shr<&u16> for &u128

1.0.0 · Source§

impl Shr<&u16> for &usize

1.0.0 · Source§

impl Shr<&u16> for i8

1.0.0 · Source§

impl Shr<&u16> for i16

1.0.0 · Source§

impl Shr<&u16> for i32

1.0.0 · Source§

impl Shr<&u16> for i64

1.0.0 · Source§

impl Shr<&u16> for i128

1.0.0 · Source§

impl Shr<&u16> for isize

1.0.0 · Source§

impl Shr<&u16> for u8

1.0.0 · Source§

impl Shr<&u16> for u16

1.0.0 · Source§

impl Shr<&u16> for u32

1.0.0 · Source§

impl Shr<&u16> for u64

1.0.0 · Source§

impl Shr<&u16> for u128

1.0.0 · Source§

impl Shr<&u16> for usize

1.0.0 · Source§

impl Shr<&u32> for &i8

1.0.0 · Source§

impl Shr<&u32> for &i16

1.0.0 · Source§

impl Shr<&u32> for &i32

1.0.0 · Source§

impl Shr<&u32> for &i64

1.0.0 · Source§

impl Shr<&u32> for &i128

1.0.0 · Source§

impl Shr<&u32> for &isize

1.0.0 · Source§

impl Shr<&u32> for &u8

1.0.0 · Source§

impl Shr<&u32> for &u16

1.0.0 · Source§

impl Shr<&u32> for &u32

1.0.0 · Source§

impl Shr<&u32> for &u64

1.0.0 · Source§

impl Shr<&u32> for &u128

1.0.0 · Source§

impl Shr<&u32> for &usize

1.0.0 · Source§

impl Shr<&u32> for i8

1.0.0 · Source§

impl Shr<&u32> for i16

1.0.0 · Source§

impl Shr<&u32> for i32

1.0.0 · Source§

impl Shr<&u32> for i64

1.0.0 · Source§

impl Shr<&u32> for i128

1.0.0 · Source§

impl Shr<&u32> for isize

1.0.0 · Source§

impl Shr<&u32> for u8

1.0.0 · Source§

impl Shr<&u32> for u16

1.0.0 · Source§

impl Shr<&u32> for u32

1.0.0 · Source§

impl Shr<&u32> for u64

1.0.0 · Source§

impl Shr<&u32> for u128

1.0.0 · Source§

impl Shr<&u32> for usize

1.0.0 · Source§

impl Shr<&u64> for &i8

1.0.0 · Source§

impl Shr<&u64> for &i16

1.0.0 · Source§

impl Shr<&u64> for &i32

1.0.0 · Source§

impl Shr<&u64> for &i64

1.0.0 · Source§

impl Shr<&u64> for &i128

1.0.0 · Source§

impl Shr<&u64> for &isize

1.0.0 · Source§

impl Shr<&u64> for &u8

1.0.0 · Source§

impl Shr<&u64> for &u16

1.0.0 · Source§

impl Shr<&u64> for &u32

1.0.0 · Source§

impl Shr<&u64> for &u64

1.0.0 · Source§

impl Shr<&u64> for &u128

1.0.0 · Source§

impl Shr<&u64> for &usize

1.0.0 · Source§

impl Shr<&u64> for i8

1.0.0 · Source§

impl Shr<&u64> for i16

1.0.0 · Source§

impl Shr<&u64> for i32

1.0.0 · Source§

impl Shr<&u64> for i64

1.0.0 · Source§

impl Shr<&u64> for i128

1.0.0 · Source§

impl Shr<&u64> for isize

1.0.0 · Source§

impl Shr<&u64> for u8

1.0.0 · Source§

impl Shr<&u64> for u16

1.0.0 · Source§

impl Shr<&u64> for u32

1.0.0 · Source§

impl Shr<&u64> for u64

1.0.0 · Source§

impl Shr<&u64> for u128

1.0.0 · Source§

impl Shr<&u64> for usize

1.0.0 · Source§

impl Shr<&u128> for &i8

1.0.0 · Source§

impl Shr<&u128> for &i16

1.0.0 · Source§

impl Shr<&u128> for &i32

1.0.0 · Source§

impl Shr<&u128> for &i64

1.0.0 · Source§

impl Shr<&u128> for &i128

1.0.0 · Source§

impl Shr<&u128> for &isize

1.0.0 · Source§

impl Shr<&u128> for &u8

1.0.0 · Source§

impl Shr<&u128> for &u16

1.0.0 · Source§

impl Shr<&u128> for &u32

1.0.0 · Source§

impl Shr<&u128> for &u64

1.0.0 · Source§

impl Shr<&u128> for &u128

1.0.0 · Source§

impl Shr<&u128> for &usize

1.0.0 · Source§

impl Shr<&u128> for i8

1.0.0 · Source§

impl Shr<&u128> for i16

1.0.0 · Source§

impl Shr<&u128> for i32

1.0.0 · Source§

impl Shr<&u128> for i64

1.0.0 · Source§

impl Shr<&u128> for i128

1.0.0 · Source§

impl Shr<&u128> for isize

1.0.0 · Source§

impl Shr<&u128> for u8

1.0.0 · Source§

impl Shr<&u128> for u16

1.0.0 · Source§

impl Shr<&u128> for u32

1.0.0 · Source§

impl Shr<&u128> for u64

1.0.0 · Source§

impl Shr<&u128> for u128

1.0.0 · Source§

impl Shr<&u128> for usize

1.0.0 · Source§

impl Shr<&usize> for &i8

1.0.0 · Source§

impl Shr<&usize> for &i16

1.0.0 · Source§

impl Shr<&usize> for &i32

1.0.0 · Source§

impl Shr<&usize> for &i64

1.0.0 · Source§

impl Shr<&usize> for &i128

1.0.0 · Source§

impl Shr<&usize> for &isize

1.0.0 · Source§

impl Shr<&usize> for &u8

1.0.0 · Source§

impl Shr<&usize> for &u16

1.0.0 · Source§

impl Shr<&usize> for &u32

1.0.0 · Source§

impl Shr<&usize> for &u64

1.0.0 · Source§

impl Shr<&usize> for &u128

1.0.0 · Source§

impl Shr<&usize> for &usize

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<i8>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<i16>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<i32>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<i64>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<i128>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<isize>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<u8>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<u16>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<u32>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<u64>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<u128>

1.39.0 · Source§

impl Shr<&usize> for &Wrapping<usize>

1.0.0 · Source§

impl Shr<&usize> for i8

1.0.0 · Source§

impl Shr<&usize> for i16

1.0.0 · Source§

impl Shr<&usize> for i32

1.0.0 · Source§

impl Shr<&usize> for i64

1.0.0 · Source§

impl Shr<&usize> for i128

1.0.0 · Source§

impl Shr<&usize> for isize

1.0.0 · Source§

impl Shr<&usize> for u8

1.0.0 · Source§

impl Shr<&usize> for u16

1.0.0 · Source§

impl Shr<&usize> for u32

1.0.0 · Source§

impl Shr<&usize> for u64

1.0.0 · Source§

impl Shr<&usize> for u128

1.0.0 · Source§

impl Shr<&usize> for usize

1.39.0 · Source§

impl Shr<&usize> for Wrapping<i8>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<i16>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<i32>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<i64>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<i128>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<isize>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<u8>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<u16>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<u32>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<u64>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<u128>

1.39.0 · Source§

impl Shr<&usize> for Wrapping<usize>

1.0.0 · Source§

impl Shr<i8> for i16

1.0.0 · Source§

impl Shr<i8> for i32

1.0.0 · Source§

impl Shr<i8> for i64

1.0.0 · Source§

impl Shr<i8> for i128

1.0.0 · Source§

impl Shr<i8> for isize

1.0.0 · Source§

impl Shr<i8> for u8

1.0.0 · Source§

impl Shr<i8> for u16

1.0.0 · Source§

impl Shr<i8> for u32

1.0.0 · Source§

impl Shr<i8> for u64

1.0.0 · Source§

impl Shr<i8> for u128

1.0.0 · Source§

impl Shr<i8> for usize

1.0.0 · Source§

impl Shr<i16> for i8

1.0.0 · Source§

impl Shr<i16> for i32

1.0.0 · Source§

impl Shr<i16> for i64

1.0.0 · Source§

impl Shr<i16> for i128

1.0.0 · Source§

impl Shr<i16> for isize

1.0.0 · Source§

impl Shr<i16> for u8

1.0.0 · Source§

impl Shr<i16> for u16

1.0.0 · Source§

impl Shr<i16> for u32

1.0.0 · Source§

impl Shr<i16> for u64

1.0.0 · Source§

impl Shr<i16> for u128

1.0.0 · Source§

impl Shr<i16> for usize

1.0.0 · Source§

impl Shr<i32> for i8

1.0.0 · Source§

impl Shr<i32> for i16

1.0.0 · Source§

impl Shr<i32> for i64

1.0.0 · Source§

impl Shr<i32> for i128

1.0.0 · Source§

impl Shr<i32> for isize

1.0.0 · Source§

impl Shr<i32> for u8

1.0.0 · Source§

impl Shr<i32> for u16

1.0.0 · Source§

impl Shr<i32> for u32

1.0.0 · Source§

impl Shr<i32> for u64

1.0.0 · Source§

impl Shr<i32> for u128

1.0.0 · Source§

impl Shr<i32> for usize

1.0.0 · Source§

impl Shr<i64> for i8

1.0.0 · Source§

impl Shr<i64> for i16

1.0.0 · Source§

impl Shr<i64> for i32

1.0.0 · Source§

impl Shr<i64> for i128

1.0.0 · Source§

impl Shr<i64> for isize

1.0.0 · Source§

impl Shr<i64> for u8

1.0.0 · Source§

impl Shr<i64> for u16

1.0.0 · Source§

impl Shr<i64> for u32

1.0.0 · Source§

impl Shr<i64> for u64

1.0.0 · Source§

impl Shr<i64> for u128

1.0.0 · Source§

impl Shr<i64> for usize

1.0.0 · Source§

impl Shr<i128> for i8

1.0.0 · Source§

impl Shr<i128> for i16

1.0.0 · Source§

impl Shr<i128> for i32

1.0.0 · Source§

impl Shr<i128> for i64

1.0.0 · Source§

impl Shr<i128> for isize

1.0.0 · Source§

impl Shr<i128> for u8

1.0.0 · Source§

impl Shr<i128> for u16

1.0.0 · Source§

impl Shr<i128> for u32

1.0.0 · Source§

impl Shr<i128> for u64

1.0.0 · Source§

impl Shr<i128> for u128

1.0.0 · Source§

impl Shr<i128> for usize

1.0.0 · Source§

impl Shr<isize> for i8

1.0.0 · Source§

impl Shr<isize> for i16

1.0.0 · Source§

impl Shr<isize> for i32

1.0.0 · Source§

impl Shr<isize> for i64

1.0.0 · Source§

impl Shr<isize> for i128

1.0.0 · Source§

impl Shr<isize> for u8

1.0.0 · Source§

impl Shr<isize> for u16

1.0.0 · Source§

impl Shr<isize> for u32

1.0.0 · Source§

impl Shr<isize> for u64

1.0.0 · Source§

impl Shr<isize> for u128

1.0.0 · Source§

impl Shr<isize> for usize

1.0.0 · Source§

impl Shr<u8> for i8

1.0.0 · Source§

impl Shr<u8> for i16

1.0.0 · Source§

impl Shr<u8> for i32

1.0.0 · Source§

impl Shr<u8> for i64

1.0.0 · Source§

impl Shr<u8> for i128

1.0.0 · Source§

impl Shr<u8> for isize

1.0.0 · Source§

impl Shr<u8> for u16

1.0.0 · Source§

impl Shr<u8> for u32

1.0.0 · Source§

impl Shr<u8> for u64

1.0.0 · Source§

impl Shr<u8> for u128

1.0.0 · Source§

impl Shr<u8> for usize

1.0.0 · Source§

impl Shr<u16> for i8

1.0.0 · Source§

impl Shr<u16> for i16

1.0.0 · Source§

impl Shr<u16> for i32

1.0.0 · Source§

impl Shr<u16> for i64

1.0.0 · Source§

impl Shr<u16> for i128

1.0.0 · Source§

impl Shr<u16> for isize

1.0.0 · Source§

impl Shr<u16> for u8

1.0.0 · Source§

impl Shr<u16> for u32

1.0.0 · Source§

impl Shr<u16> for u64

1.0.0 · Source§

impl Shr<u16> for u128

1.0.0 · Source§

impl Shr<u16> for usize

1.0.0 · Source§

impl Shr<u32> for i8

1.0.0 · Source§

impl Shr<u32> for i16

1.0.0 · Source§

impl Shr<u32> for i32

1.0.0 · Source§

impl Shr<u32> for i64

1.0.0 · Source§

impl Shr<u32> for i128

1.0.0 · Source§

impl Shr<u32> for isize

1.0.0 · Source§

impl Shr<u32> for u8

1.0.0 · Source§

impl Shr<u32> for u16

1.0.0 · Source§

impl Shr<u32> for u64

1.0.0 · Source§

impl Shr<u32> for u128

1.0.0 · Source§

impl Shr<u32> for usize

1.0.0 · Source§

impl Shr<u64> for i8

1.0.0 · Source§

impl Shr<u64> for i16

1.0.0 · Source§

impl Shr<u64> for i32

1.0.0 · Source§

impl Shr<u64> for i64

1.0.0 · Source§

impl Shr<u64> for i128

1.0.0 · Source§

impl Shr<u64> for isize

1.0.0 · Source§

impl Shr<u64> for u8

1.0.0 · Source§

impl Shr<u64> for u16

1.0.0 · Source§

impl Shr<u64> for u32

1.0.0 · Source§

impl Shr<u64> for u128

1.0.0 · Source§

impl Shr<u64> for usize

1.0.0 · Source§

impl Shr<u128> for i8

1.0.0 · Source§

impl Shr<u128> for i16

1.0.0 · Source§

impl Shr<u128> for i32

1.0.0 · Source§

impl Shr<u128> for i64

1.0.0 · Source§

impl Shr<u128> for i128

1.0.0 · Source§

impl Shr<u128> for isize

1.0.0 · Source§

impl Shr<u128> for u8

1.0.0 · Source§

impl Shr<u128> for u16

1.0.0 · Source§

impl Shr<u128> for u32

1.0.0 · Source§

impl Shr<u128> for u64

1.0.0 · Source§

impl Shr<u128> for usize

1.0.0 · Source§

impl Shr<usize> for i8

1.0.0 · Source§

impl Shr<usize> for i16

1.0.0 · Source§

impl Shr<usize> for i32

1.0.0 · Source§

impl Shr<usize> for i64

1.0.0 · Source§

impl Shr<usize> for i128

1.0.0 · Source§

impl Shr<usize> for isize

1.0.0 · Source§

impl Shr<usize> for u8

1.0.0 · Source§

impl Shr<usize> for u16

1.0.0 · Source§

impl Shr<usize> for u32

1.0.0 · Source§

impl Shr<usize> for u64

1.0.0 · Source§

impl Shr<usize> for u128

1.0.0 · Source§

impl Shr<usize> for Wrapping<i8>

1.0.0 · Source§

impl Shr<usize> for Wrapping<i16>

1.0.0 · Source§

impl Shr<usize> for Wrapping<i32>

1.0.0 · Source§

impl Shr<usize> for Wrapping<i64>

1.0.0 · Source§

impl Shr<usize> for Wrapping<i128>

1.0.0 · Source§

impl Shr<usize> for Wrapping<isize>

1.0.0 · Source§

impl Shr<usize> for Wrapping<u8>

1.0.0 · Source§

impl Shr<usize> for Wrapping<u16>

1.0.0 · Source§

impl Shr<usize> for Wrapping<u32>

1.0.0 · Source§

impl Shr<usize> for Wrapping<u64>

1.0.0 · Source§

impl Shr<usize> for Wrapping<u128>

1.0.0 · Source§

impl Shr<usize> for Wrapping<usize>

1.0.0 · Source§

impl<'a> Shr<i8> for &'a i8

1.0.0 · Source§

impl<'a> Shr<i8> for &'a i16

1.0.0 · Source§

impl<'a> Shr<i8> for &'a i32

1.0.0 · Source§

impl<'a> Shr<i8> for &'a i64

1.0.0 · Source§

impl<'a> Shr<i8> for &'a i128

1.0.0 · Source§

impl<'a> Shr<i8> for &'a isize

1.0.0 · Source§

impl<'a> Shr<i8> for &'a u8

Source§

type Output = <u8 as Shr<i8>>::Output

1.0.0 · Source§

impl<'a> Shr<i8> for &'a u16

1.0.0 · Source§

impl<'a> Shr<i8> for &'a u32

1.0.0 · Source§

impl<'a> Shr<i8> for &'a u64

1.0.0 · Source§

impl<'a> Shr<i8> for &'a u128

1.0.0 · Source§

impl<'a> Shr<i8> for &'a usize

1.0.0 · Source§

impl<'a> Shr<i16> for &'a i8

1.0.0 · Source§

impl<'a> Shr<i16> for &'a i16

1.0.0 · Source§

impl<'a> Shr<i16> for &'a i32

1.0.0 · Source§

impl<'a> Shr<i16> for &'a i64

1.0.0 · Source§

impl<'a> Shr<i16> for &'a i128

1.0.0 · Source§

impl<'a> Shr<i16> for &'a isize

1.0.0 · Source§

impl<'a> Shr<i16> for &'a u8

1.0.0 · Source§

impl<'a> Shr<i16> for &'a u16

1.0.0 · Source§

impl<'a> Shr<i16> for &'a u32

1.0.0 · Source§

impl<'a> Shr<i16> for &'a u64

1.0.0 · Source§

impl<'a> Shr<i16> for &'a u128

1.0.0 · Source§

impl<'a> Shr<i16> for &'a usize

1.0.0 · Source§

impl<'a> Shr<i32> for &'a i8

1.0.0 · Source§

impl<'a> Shr<i32> for &'a i16

1.0.0 · Source§

impl<'a> Shr<i32> for &'a i32

1.0.0 · Source§

impl<'a> Shr<i32> for &'a i64

1.0.0 · Source§

impl<'a> Shr<i32> for &'a i128

1.0.0 · Source§

impl<'a> Shr<i32> for &'a isize

1.0.0 · Source§

impl<'a> Shr<i32> for &'a u8

1.0.0 · Source§

impl<'a> Shr<i32> for &'a u16

1.0.0 · Source§

impl<'a> Shr<i32> for &'a u32

1.0.0 · Source§

impl<'a> Shr<i32> for &'a u64

1.0.0 · Source§

impl<'a> Shr<i32> for &'a u128

1.0.0 · Source§

impl<'a> Shr<i32> for &'a usize

1.0.0 · Source§

impl<'a> Shr<i64> for &'a i8

1.0.0 · Source§

impl<'a> Shr<i64> for &'a i16

1.0.0 · Source§

impl<'a> Shr<i64> for &'a i32

1.0.0 · Source§

impl<'a> Shr<i64> for &'a i64

1.0.0 · Source§

impl<'a> Shr<i64> for &'a i128

1.0.0 · Source§

impl<'a> Shr<i64> for &'a isize

1.0.0 · Source§

impl<'a> Shr<i64> for &'a u8

1.0.0 · Source§

impl<'a> Shr<i64> for &'a u16

1.0.0 · Source§

impl<'a> Shr<i64> for &'a u32

1.0.0 · Source§

impl<'a> Shr<i64> for &'a u64

1.0.0 · Source§

impl<'a> Shr<i64> for &'a u128

1.0.0 · Source§

impl<'a> Shr<i64> for &'a usize

1.0.0 · Source§

impl<'a> Shr<i128> for &'a i8

1.0.0 · Source§

impl<'a> Shr<i128> for &'a i16

1.0.0 · Source§

impl<'a> Shr<i128> for &'a i32

1.0.0 · Source§

impl<'a> Shr<i128> for &'a i64

1.0.0 · Source§

impl<'a> Shr<i128> for &'a i128

1.0.0 · Source§

impl<'a> Shr<i128> for &'a isize

1.0.0 · Source§

impl<'a> Shr<i128> for &'a u8

1.0.0 · Source§

impl<'a> Shr<i128> for &'a u16

1.0.0 · Source§

impl<'a> Shr<i128> for &'a u32

1.0.0 · Source§

impl<'a> Shr<i128> for &'a u64

1.0.0 · Source§

impl<'a> Shr<i128> for &'a u128

1.0.0 · Source§

impl<'a> Shr<i128> for &'a usize

1.0.0 · Source§

impl<'a> Shr<isize> for &'a i8

1.0.0 · Source§

impl<'a> Shr<isize> for &'a i16

1.0.0 · Source§

impl<'a> Shr<isize> for &'a i32

1.0.0 · Source§

impl<'a> Shr<isize> for &'a i64

1.0.0 · Source§

impl<'a> Shr<isize> for &'a i128

1.0.0 · Source§

impl<'a> Shr<isize> for &'a isize

1.0.0 · Source§

impl<'a> Shr<isize> for &'a u8

1.0.0 · Source§

impl<'a> Shr<isize> for &'a u16

1.0.0 · Source§

impl<'a> Shr<isize> for &'a u32

1.0.0 · Source§

impl<'a> Shr<isize> for &'a u64

1.0.0 · Source§

impl<'a> Shr<isize> for &'a u128

1.0.0 · Source§

impl<'a> Shr<isize> for &'a usize

1.0.0 · Source§

impl<'a> Shr<u8> for &'a i8

Source§

type Output = <i8 as Shr<u8>>::Output

1.0.0 · Source§

impl<'a> Shr<u8> for &'a i16

1.0.0 · Source§

impl<'a> Shr<u8> for &'a i32

1.0.0 · Source§

impl<'a> Shr<u8> for &'a i64

1.0.0 · Source§

impl<'a> Shr<u8> for &'a i128

1.0.0 · Source§

impl<'a> Shr<u8> for &'a isize

1.0.0 · Source§

impl<'a> Shr<u8> for &'a u8

1.0.0 · Source§

impl<'a> Shr<u8> for &'a u16

1.0.0 · Source§

impl<'a> Shr<u8> for &'a u32

1.0.0 · Source§

impl<'a> Shr<u8> for &'a u64

1.0.0 · Source§

impl<'a> Shr<u8> for &'a u128

1.0.0 · Source§

impl<'a> Shr<u8> for &'a usize

1.0.0 · Source§

impl<'a> Shr<u16> for &'a i8

1.0.0 · Source§

impl<'a> Shr<u16> for &'a i16

1.0.0 · Source§

impl<'a> Shr<u16> for &'a i32

1.0.0 · Source§

impl<'a> Shr<u16> for &'a i64

1.0.0 · Source§

impl<'a> Shr<u16> for &'a i128

1.0.0 · Source§

impl<'a> Shr<u16> for &'a isize

1.0.0 · Source§

impl<'a> Shr<u16> for &'a u8

1.0.0 · Source§

impl<'a> Shr<u16> for &'a u16

1.0.0 · Source§

impl<'a> Shr<u16> for &'a u32

1.0.0 · Source§

impl<'a> Shr<u16> for &'a u64

1.0.0 · Source§

impl<'a> Shr<u16> for &'a u128

1.0.0 · Source§

impl<'a> Shr<u16> for &'a usize

1.0.0 · Source§

impl<'a> Shr<u32> for &'a i8

1.0.0 · Source§

impl<'a> Shr<u32> for &'a i16

1.0.0 · Source§

impl<'a> Shr<u32> for &'a i32

1.0.0 · Source§

impl<'a> Shr<u32> for &'a i64

1.0.0 · Source§

impl<'a> Shr<u32> for &'a i128

1.0.0 · Source§

impl<'a> Shr<u32> for &'a isize

1.0.0 · Source§

impl<'a> Shr<u32> for &'a u8

1.0.0 · Source§

impl<'a> Shr<u32> for &'a u16

1.0.0 · Source§

impl<'a> Shr<u32> for &'a u32

1.0.0 · Source§

impl<'a> Shr<u32> for &'a u64

1.0.0 · Source§

impl<'a> Shr<u32> for &'a u128

1.0.0 · Source§

impl<'a> Shr<u32> for &'a usize

1.0.0 · Source§

impl<'a> Shr<u64> for &'a i8

1.0.0 · Source§

impl<'a> Shr<u64> for &'a i16

1.0.0 · Source§

impl<'a> Shr<u64> for &'a i32

1.0.0 · Source§

impl<'a> Shr<u64> for &'a i64

1.0.0 · Source§

impl<'a> Shr<u64> for &'a i128

1.0.0 · Source§

impl<'a> Shr<u64> for &'a isize

1.0.0 · Source§

impl<'a> Shr<u64> for &'a u8

1.0.0 · Source§

impl<'a> Shr<u64> for &'a u16

1.0.0 · Source§

impl<'a> Shr<u64> for &'a u32

1.0.0 · Source§

impl<'a> Shr<u64> for &'a u64

1.0.0 · Source§

impl<'a> Shr<u64> for &'a u128

1.0.0 · Source§

impl<'a> Shr<u64> for &'a usize

1.0.0 · Source§

impl<'a> Shr<u128> for &'a i8

1.0.0 · Source§

impl<'a> Shr<u128> for &'a i16

1.0.0 · Source§

impl<'a> Shr<u128> for &'a i32

1.0.0 · Source§

impl<'a> Shr<u128> for &'a i64

1.0.0 · Source§

impl<'a> Shr<u128> for &'a i128

1.0.0 · Source§

impl<'a> Shr<u128> for &'a isize

1.0.0 · Source§

impl<'a> Shr<u128> for &'a u8

1.0.0 · Source§

impl<'a> Shr<u128> for &'a u16

1.0.0 · Source§

impl<'a> Shr<u128> for &'a u32

1.0.0 · Source§

impl<'a> Shr<u128> for &'a u64

1.0.0 · Source§

impl<'a> Shr<u128> for &'a u128

1.0.0 · Source§

impl<'a> Shr<u128> for &'a usize

1.0.0 · Source§

impl<'a> Shr<usize> for &'a i8

1.0.0 · Source§

impl<'a> Shr<usize> for &'a i16

1.0.0 · Source§

impl<'a> Shr<usize> for &'a i32

1.0.0 · Source§

impl<'a> Shr<usize> for &'a i64

1.0.0 · Source§

impl<'a> Shr<usize> for &'a i128

1.0.0 · Source§

impl<'a> Shr<usize> for &'a isize

1.0.0 · Source§

impl<'a> Shr<usize> for &'a u8

1.0.0 · Source§

impl<'a> Shr<usize> for &'a u16

1.0.0 · Source§

impl<'a> Shr<usize> for &'a u32

1.0.0 · Source§

impl<'a> Shr<usize> for &'a u64

1.0.0 · Source§

impl<'a> Shr<usize> for &'a u128

1.0.0 · Source§

impl<'a> Shr<usize> for &'a usize

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<i8>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<i16>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<i32>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<i64>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<i128>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<isize>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<u8>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<u16>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<u32>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<u64>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<u128>

1.39.0 · Source§

impl<'a> Shr<usize> for &'a Wrapping<usize>

Source§

impl<'lhs, 'rhs, T, const N: usize> Shr<&'rhs Simd<T, N>> for &'lhs Simd<T, N>
where T: SimdElement, Simd<T, N>: Shr<Output = Simd<T, N>>, LaneCount<N>: SupportedLaneCount,

Source§

type Output = Simd<T, N>

Source§

impl<'lhs, const N: usize> Shr<&i8> for &'lhs Simd<i8, N>

Source§

impl<'lhs, const N: usize> Shr<&i16> for &'lhs Simd<i16, N>

Source§

impl<'lhs, const N: usize> Shr<&i32> for &'lhs Simd<i32, N>

Source§

impl<'lhs, const N: usize> Shr<&i64> for &'lhs Simd<i64, N>

Source§

impl<'lhs, const N: usize> Shr<&isize> for &'lhs Simd<isize, N>

Source§

impl<'lhs, const N: usize> Shr<&u8> for &'lhs Simd<u8, N>

Source§

impl<'lhs, const N: usize> Shr<&u16> for &'lhs Simd<u16, N>

Source§

impl<'lhs, const N: usize> Shr<&u32> for &'lhs Simd<u32, N>

Source§

impl<'lhs, const N: usize> Shr<&u64> for &'lhs Simd<u64, N>

Source§

impl<'lhs, const N: usize> Shr<&usize> for &'lhs Simd<usize, N>

Source§

impl<'lhs, const N: usize> Shr<i8> for &'lhs Simd<i8, N>

Source§

impl<'lhs, const N: usize> Shr<i16> for &'lhs Simd<i16, N>

Source§

impl<'lhs, const N: usize> Shr<i32> for &'lhs Simd<i32, N>

Source§

impl<'lhs, const N: usize> Shr<i64> for &'lhs Simd<i64, N>

Source§

impl<'lhs, const N: usize> Shr<isize> for &'lhs Simd<isize, N>

Source§

impl<'lhs, const N: usize> Shr<u8> for &'lhs Simd<u8, N>

Source§

impl<'lhs, const N: usize> Shr<u16> for &'lhs Simd<u16, N>

Source§

impl<'lhs, const N: usize> Shr<u32> for &'lhs Simd<u32, N>

Source§

impl<'lhs, const N: usize> Shr<u64> for &'lhs Simd<u64, N>

Source§

impl<'lhs, const N: usize> Shr<usize> for &'lhs Simd<usize, N>

Source§

impl<T, const N: usize> Shr<&Simd<T, N>> for Simd<T, N>
where T: SimdElement, Simd<T, N>: Shr<Output = Simd<T, N>>, LaneCount<N>: SupportedLaneCount,

Source§

type Output = Simd<T, N>

Source§

impl<T, const N: usize> Shr<Simd<T, N>> for &Simd<T, N>
where T: SimdElement, Simd<T, N>: Shr<Output = Simd<T, N>>, LaneCount<N>: SupportedLaneCount,

Source§

type Output = Simd<T, N>

Source§

impl<const N: usize> Shr for Simd<i8, N>

Source§

impl<const N: usize> Shr for Simd<i16, N>

Source§

impl<const N: usize> Shr for Simd<i32, N>

Source§

impl<const N: usize> Shr for Simd<i64, N>

Source§

impl<const N: usize> Shr for Simd<isize, N>

Source§

impl<const N: usize> Shr for Simd<u8, N>

Source§

impl<const N: usize> Shr for Simd<u16, N>

Source§

impl<const N: usize> Shr for Simd<u32, N>

Source§

impl<const N: usize> Shr for Simd<u64, N>

Source§

impl<const N: usize> Shr for Simd<usize, N>

Source§

impl<const N: usize> Shr<&i8> for Simd<i8, N>

Source§

impl<const N: usize> Shr<&i16> for Simd<i16, N>

Source§

impl<const N: usize> Shr<&i32> for Simd<i32, N>

Source§

impl<const N: usize> Shr<&i64> for Simd<i64, N>

Source§

impl<const N: usize> Shr<&isize> for Simd<isize, N>

Source§

impl<const N: usize> Shr<&u8> for Simd<u8, N>

Source§

impl<const N: usize> Shr<&u16> for Simd<u16, N>

Source§

impl<const N: usize> Shr<&u32> for Simd<u32, N>

Source§

impl<const N: usize> Shr<&u64> for Simd<u64, N>

Source§

impl<const N: usize> Shr<&usize> for Simd<usize, N>

Source§

impl<const N: usize> Shr<i8> for Simd<i8, N>

Source§

impl<const N: usize> Shr<i16> for Simd<i16, N>

Source§

impl<const N: usize> Shr<i32> for Simd<i32, N>

Source§

impl<const N: usize> Shr<i64> for Simd<i64, N>

Source§

impl<const N: usize> Shr<isize> for Simd<isize, N>

Source§

impl<const N: usize> Shr<u8> for Simd<u8, N>

Source§

impl<const N: usize> Shr<u16> for Simd<u16, N>

Source§

impl<const N: usize> Shr<u32> for Simd<u32, N>

Source§

impl<const N: usize> Shr<u64> for Simd<u64, N>

Source§

impl<const N: usize> Shr<usize> for Simd<usize, N>