Skip to main content

BitShr

Trait BitShr 

Source
pub trait BitShr<Rhs = Self> {
    type Output;

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

Required Associated Types§

Source

type Output

The resulting type after applying the >> operator.

Required Methods§

Source

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

Performs the >> operation.

§Examples
assert_eq!(8u8 >> 1, 4);
assert_eq!(8u8 >> 2, 2);
assert_eq!(32u16 >> 3, 4);

Implementations on Foreign Types§

Source§

impl BitShr for Value

Source§

type Output = Value

Source§

fn op_shr(self, rhs: Value) -> Self::Output

Source§

impl BitShr for i8

Source§

type Output = i8

Source§

fn op_shr(self, rhs: i8) -> Self::Output

Source§

impl BitShr for i16

Source§

type Output = i16

Source§

fn op_shr(self, rhs: i16) -> Self::Output

Source§

impl BitShr for i32

Source§

type Output = i32

Source§

fn op_shr(self, rhs: i32) -> Self::Output

Source§

impl BitShr for i64

Source§

type Output = i64

Source§

fn op_shr(self, rhs: i64) -> Self::Output

Source§

impl BitShr for isize

Source§

type Output = isize

Source§

fn op_shr(self, rhs: isize) -> Self::Output

Source§

impl BitShr for u8

Source§

type Output = u8

Source§

fn op_shr(self, rhs: u8) -> Self::Output

Source§

impl BitShr for u16

Source§

type Output = u16

Source§

fn op_shr(self, rhs: u16) -> Self::Output

Source§

impl BitShr for u32

Source§

type Output = u32

Source§

fn op_shr(self, rhs: u32) -> Self::Output

Source§

impl BitShr for u64

Source§

type Output = u64

Source§

fn op_shr(self, rhs: u64) -> Self::Output

Source§

impl BitShr for usize

Source§

type Output = usize

Source§

fn op_shr(self, rhs: usize) -> Self::Output

Source§

impl BitShr<&&Value> for &Value

Source§

type Output = Value

Source§

fn op_shr(self, rhs: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for Value

Source§

type Output = Value

Source§

fn op_shr(self, rhs: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for i8

Source§

type Output = i64

Source§

fn op_shr(self, other: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for i16

Source§

type Output = i64

Source§

fn op_shr(self, other: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for i32

Source§

type Output = i64

Source§

fn op_shr(self, other: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for i64

Source§

type Output = i64

Source§

fn op_shr(self, other: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for isize

Source§

type Output = i64

Source§

fn op_shr(self, other: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for u8

Source§

type Output = u64

Source§

fn op_shr(self, other: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for u16

Source§

type Output = u64

Source§

fn op_shr(self, other: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for u32

Source§

type Output = u64

Source§

fn op_shr(self, other: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for u64

Source§

type Output = u64

Source§

fn op_shr(self, other: &&Value) -> Self::Output

Source§

impl BitShr<&&Value> for usize

Source§

type Output = i64

Source§

fn op_shr(self, other: &&Value) -> Self::Output

Source§

impl BitShr<&Value> for &Value

Source§

type Output = Value

Source§

fn op_shr(self, rhs: &Value) -> Self::Output

Source§

impl BitShr<&Value> for &i8

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for &i16

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for &i32

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for &i64

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for &isize

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for &u8

Source§

type Output = u64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for &u16

Source§

type Output = u64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for &u32

Source§

type Output = u64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for &u64

Source§

type Output = u64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for &usize

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for Value

Source§

type Output = Value

Source§

fn op_shr(self, rhs: &Value) -> Self::Output

Source§

impl BitShr<&Value> for i8

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for i16

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for i32

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for i64

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for isize

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for u8

Source§

type Output = u64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for u16

Source§

type Output = u64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for u32

Source§

type Output = u64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for u64

Source§

type Output = u64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&Value> for usize

Source§

type Output = i64

Source§

fn op_shr(self, other: &Value) -> Self::Output

Source§

impl BitShr<&i8> for &i8

Source§

type Output = i8

Source§

fn op_shr(self, rhs: &i8) -> Self::Output

Source§

impl BitShr<&i8> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &i8) -> Self::Output

Source§

impl BitShr<&i8> for i8

Source§

type Output = i8

Source§

fn op_shr(self, rhs: &i8) -> Self::Output

Source§

impl BitShr<&i16> for &i16

Source§

type Output = i16

Source§

fn op_shr(self, rhs: &i16) -> Self::Output

Source§

impl BitShr<&i16> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &i16) -> Self::Output

Source§

impl BitShr<&i16> for i16

Source§

type Output = i16

Source§

fn op_shr(self, rhs: &i16) -> Self::Output

Source§

impl BitShr<&i32> for &i32

Source§

type Output = i32

Source§

fn op_shr(self, rhs: &i32) -> Self::Output

Source§

impl BitShr<&i32> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &i32) -> Self::Output

Source§

impl BitShr<&i32> for i32

Source§

type Output = i32

Source§

fn op_shr(self, rhs: &i32) -> Self::Output

Source§

impl BitShr<&i64> for &i64

Source§

type Output = i64

Source§

fn op_shr(self, rhs: &i64) -> Self::Output

Source§

impl BitShr<&i64> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &i64) -> Self::Output

Source§

impl BitShr<&i64> for i64

Source§

type Output = i64

Source§

fn op_shr(self, rhs: &i64) -> Self::Output

Source§

impl BitShr<&isize> for &isize

Source§

type Output = isize

Source§

fn op_shr(self, rhs: &isize) -> Self::Output

Source§

impl BitShr<&isize> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &isize) -> Self::Output

Source§

impl BitShr<&isize> for isize

Source§

type Output = isize

Source§

fn op_shr(self, rhs: &isize) -> Self::Output

Source§

impl BitShr<&u8> for &u8

Source§

type Output = u8

Source§

fn op_shr(self, rhs: &u8) -> Self::Output

Source§

impl BitShr<&u8> for Value

Source§

type Output = u64

Source§

fn op_shr(self, other: &u8) -> Self::Output

Source§

impl BitShr<&u8> for u8

Source§

type Output = u8

Source§

fn op_shr(self, rhs: &u8) -> Self::Output

Source§

impl BitShr<&u16> for &u16

Source§

type Output = u16

Source§

fn op_shr(self, rhs: &u16) -> Self::Output

Source§

impl BitShr<&u16> for Value

Source§

type Output = u64

Source§

fn op_shr(self, other: &u16) -> Self::Output

Source§

impl BitShr<&u16> for u16

Source§

type Output = u16

Source§

fn op_shr(self, rhs: &u16) -> Self::Output

Source§

impl BitShr<&u32> for &u32

Source§

type Output = u32

Source§

fn op_shr(self, rhs: &u32) -> Self::Output

Source§

impl BitShr<&u32> for Value

Source§

type Output = u64

Source§

fn op_shr(self, other: &u32) -> Self::Output

Source§

impl BitShr<&u32> for u32

Source§

type Output = u32

Source§

fn op_shr(self, rhs: &u32) -> Self::Output

Source§

impl BitShr<&u64> for &u64

Source§

type Output = u64

Source§

fn op_shr(self, rhs: &u64) -> Self::Output

Source§

impl BitShr<&u64> for Value

Source§

type Output = u64

Source§

fn op_shr(self, other: &u64) -> Self::Output

Source§

impl BitShr<&u64> for u64

Source§

type Output = u64

Source§

fn op_shr(self, rhs: &u64) -> Self::Output

Source§

impl BitShr<&usize> for &usize

Source§

type Output = usize

Source§

fn op_shr(self, rhs: &usize) -> Self::Output

Source§

impl BitShr<&usize> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &usize) -> Self::Output

Source§

impl BitShr<&usize> for usize

Source§

type Output = usize

Source§

fn op_shr(self, rhs: &usize) -> Self::Output

Source§

impl BitShr<Value> for &Value

Source§

type Output = Value

Source§

fn op_shr(self, rhs: Value) -> Self::Output

Source§

impl BitShr<Value> for &i8

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for &i16

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for &i32

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for &i64

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for &isize

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for &u8

Source§

type Output = u64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for &u16

Source§

type Output = u64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for &u32

Source§

type Output = u64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for &u64

Source§

type Output = u64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for &usize

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for i8

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for i16

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for i32

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for i64

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for isize

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for u8

Source§

type Output = u64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for u16

Source§

type Output = u64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for u32

Source§

type Output = u64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for u64

Source§

type Output = u64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<Value> for usize

Source§

type Output = i64

Source§

fn op_shr(self, other: Value) -> Self::Output

Source§

impl BitShr<i8> for &i8

Source§

type Output = i8

Source§

fn op_shr(self, rhs: i8) -> Self::Output

Source§

impl BitShr<i8> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: i8) -> Self::Output

Source§

impl BitShr<i16> for &i16

Source§

type Output = i16

Source§

fn op_shr(self, rhs: i16) -> Self::Output

Source§

impl BitShr<i16> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: i16) -> Self::Output

Source§

impl BitShr<i32> for &i32

Source§

type Output = i32

Source§

fn op_shr(self, rhs: i32) -> Self::Output

Source§

impl BitShr<i32> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: i32) -> Self::Output

Source§

impl BitShr<i64> for &i64

Source§

type Output = i64

Source§

fn op_shr(self, rhs: i64) -> Self::Output

Source§

impl BitShr<i64> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: i64) -> Self::Output

Source§

impl BitShr<isize> for &isize

Source§

type Output = isize

Source§

fn op_shr(self, rhs: isize) -> Self::Output

Source§

impl BitShr<isize> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: isize) -> Self::Output

Source§

impl BitShr<u8> for &u8

Source§

type Output = u8

Source§

fn op_shr(self, rhs: u8) -> Self::Output

Source§

impl BitShr<u8> for Value

Source§

type Output = u64

Source§

fn op_shr(self, other: u8) -> Self::Output

Source§

impl BitShr<u16> for &u16

Source§

type Output = u16

Source§

fn op_shr(self, rhs: u16) -> Self::Output

Source§

impl BitShr<u16> for Value

Source§

type Output = u64

Source§

fn op_shr(self, other: u16) -> Self::Output

Source§

impl BitShr<u32> for &u32

Source§

type Output = u32

Source§

fn op_shr(self, rhs: u32) -> Self::Output

Source§

impl BitShr<u32> for Value

Source§

type Output = u64

Source§

fn op_shr(self, other: u32) -> Self::Output

Source§

impl BitShr<u64> for &u64

Source§

type Output = u64

Source§

fn op_shr(self, rhs: u64) -> Self::Output

Source§

impl BitShr<u64> for Value

Source§

type Output = u64

Source§

fn op_shr(self, other: u64) -> Self::Output

Source§

impl BitShr<usize> for &usize

Source§

type Output = usize

Source§

fn op_shr(self, rhs: usize) -> Self::Output

Source§

impl BitShr<usize> for Value

Source§

type Output = i64

Source§

fn op_shr(self, other: usize) -> Self::Output

Source§

impl<'a> BitShr<&i8> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &i8) -> Self::Output

Source§

impl<'a> BitShr<&i16> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &i16) -> Self::Output

Source§

impl<'a> BitShr<&i32> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &i32) -> Self::Output

Source§

impl<'a> BitShr<&i64> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &i64) -> Self::Output

Source§

impl<'a> BitShr<&isize> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &isize) -> Self::Output

Source§

impl<'a> BitShr<&u8> for &'a Value

Source§

type Output = u64

Source§

fn op_shr(self, other: &u8) -> Self::Output

Source§

impl<'a> BitShr<&u16> for &'a Value

Source§

type Output = u64

Source§

fn op_shr(self, other: &u16) -> Self::Output

Source§

impl<'a> BitShr<&u32> for &'a Value

Source§

type Output = u64

Source§

fn op_shr(self, other: &u32) -> Self::Output

Source§

impl<'a> BitShr<&u64> for &'a Value

Source§

type Output = u64

Source§

fn op_shr(self, other: &u64) -> Self::Output

Source§

impl<'a> BitShr<&usize> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: &usize) -> Self::Output

Source§

impl<'a> BitShr<i8> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: i8) -> Self::Output

Source§

impl<'a> BitShr<i16> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: i16) -> Self::Output

Source§

impl<'a> BitShr<i32> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: i32) -> Self::Output

Source§

impl<'a> BitShr<i64> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: i64) -> Self::Output

Source§

impl<'a> BitShr<isize> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: isize) -> Self::Output

Source§

impl<'a> BitShr<u8> for &'a Value

Source§

type Output = u64

Source§

fn op_shr(self, other: u8) -> Self::Output

Source§

impl<'a> BitShr<u16> for &'a Value

Source§

type Output = u64

Source§

fn op_shr(self, other: u16) -> Self::Output

Source§

impl<'a> BitShr<u32> for &'a Value

Source§

type Output = u64

Source§

fn op_shr(self, other: u32) -> Self::Output

Source§

impl<'a> BitShr<u64> for &'a Value

Source§

type Output = u64

Source§

fn op_shr(self, other: u64) -> Self::Output

Source§

impl<'a> BitShr<usize> for &'a Value

Source§

type Output = i64

Source§

fn op_shr(self, other: usize) -> Self::Output

Implementors§