wasmer_types::lib::std::ops

Trait BitOrAssign

1.8.0 · Source
pub trait BitOrAssign<Rhs = Self> {
    // Required method
    fn bitor_assign(&mut self, rhs: Rhs);
}
Available on crate feature std only.
Expand description

The bitwise OR assignment operator |=.

§Examples

use std::ops::BitOrAssign;

#[derive(Debug, PartialEq)]
struct PersonalPreferences {
    likes_cats: bool,
    likes_dogs: bool,
}

impl BitOrAssign for PersonalPreferences {
    fn bitor_assign(&mut self, rhs: Self) {
        self.likes_cats |= rhs.likes_cats;
        self.likes_dogs |= rhs.likes_dogs;
    }
}

let mut prefs = PersonalPreferences { likes_cats: true, likes_dogs: false };
prefs |= PersonalPreferences { likes_cats: false, likes_dogs: true };
assert_eq!(prefs, PersonalPreferences { likes_cats: true, likes_dogs: true });

Required Methods§

1.8.0 · Source

fn bitor_assign(&mut self, rhs: Rhs)

Performs the |= operation.

§Examples
let mut x = true;
x |= false;
assert_eq!(x, true);

let mut x = false;
x |= false;
assert_eq!(x, false);

let mut x: u8 = 5;
x |= 1;
assert_eq!(x, 5);

let mut x: u8 = 5;
x |= 2;
assert_eq!(x, 7);

Implementors§

1.8.0 · Source§

impl BitOrAssign for bool

1.8.0 · Source§

impl BitOrAssign for i8

1.8.0 · Source§

impl BitOrAssign for i16

1.8.0 · Source§

impl BitOrAssign for i32

1.8.0 · Source§

impl BitOrAssign for i64

1.8.0 · Source§

impl BitOrAssign for i128

1.8.0 · Source§

impl BitOrAssign for isize

1.8.0 · Source§

impl BitOrAssign for u8

1.8.0 · Source§

impl BitOrAssign for u16

1.8.0 · Source§

impl BitOrAssign for u32

1.8.0 · Source§

impl BitOrAssign for u64

1.8.0 · Source§

impl BitOrAssign for u128

1.8.0 · Source§

impl BitOrAssign for usize

1.75.0 · Source§

impl BitOrAssign for Ipv4Addr

1.75.0 · Source§

impl BitOrAssign for Ipv6Addr

1.74.0 · Source§

impl BitOrAssign for Saturating<i8>

1.74.0 · Source§

impl BitOrAssign for Saturating<i16>

1.74.0 · Source§

impl BitOrAssign for Saturating<i32>

1.74.0 · Source§

impl BitOrAssign for Saturating<i64>

1.74.0 · Source§

impl BitOrAssign for Saturating<i128>

1.74.0 · Source§

impl BitOrAssign for Saturating<isize>

1.74.0 · Source§

impl BitOrAssign for Saturating<u8>

1.74.0 · Source§

impl BitOrAssign for Saturating<u16>

1.74.0 · Source§

impl BitOrAssign for Saturating<u32>

1.74.0 · Source§

impl BitOrAssign for Saturating<u64>

1.74.0 · Source§

impl BitOrAssign for Saturating<u128>

1.74.0 · Source§

impl BitOrAssign for Saturating<usize>

1.8.0 · Source§

impl BitOrAssign for Wrapping<i8>

1.8.0 · Source§

impl BitOrAssign for Wrapping<i16>

1.8.0 · Source§

impl BitOrAssign for Wrapping<i32>

1.8.0 · Source§

impl BitOrAssign for Wrapping<i64>

1.8.0 · Source§

impl BitOrAssign for Wrapping<i128>

1.8.0 · Source§

impl BitOrAssign for Wrapping<isize>

1.8.0 · Source§

impl BitOrAssign for Wrapping<u8>

1.8.0 · Source§

impl BitOrAssign for Wrapping<u16>

1.8.0 · Source§

impl BitOrAssign for Wrapping<u32>

1.8.0 · Source§

impl BitOrAssign for Wrapping<u64>

1.8.0 · Source§

impl BitOrAssign for Wrapping<u128>

1.8.0 · Source§

impl BitOrAssign for Wrapping<usize>

Source§

impl BitOrAssign for NonZeroI16_be

Source§

impl BitOrAssign for NonZeroI16_le

Source§

impl BitOrAssign for NonZeroI32_be

Source§

impl BitOrAssign for NonZeroI32_le

Source§

impl BitOrAssign for NonZeroI64_be

Source§

impl BitOrAssign for NonZeroI64_le

Source§

impl BitOrAssign for NonZeroI128_be

Source§

impl BitOrAssign for NonZeroI128_le

Source§

impl BitOrAssign for NonZeroU16_be

Source§

impl BitOrAssign for NonZeroU16_le

Source§

impl BitOrAssign for NonZeroU32_be

Source§

impl BitOrAssign for NonZeroU32_le

Source§

impl BitOrAssign for NonZeroU64_be

Source§

impl BitOrAssign for NonZeroU64_le

Source§

impl BitOrAssign for NonZeroU128_be

Source§

impl BitOrAssign for NonZeroU128_le

Source§

impl BitOrAssign for i16_be

Source§

impl BitOrAssign for i16_le

Source§

impl BitOrAssign for i32_be

Source§

impl BitOrAssign for i32_le

Source§

impl BitOrAssign for i64_be

Source§

impl BitOrAssign for i64_le

Source§

impl BitOrAssign for i128_be

Source§

impl BitOrAssign for i128_le

Source§

impl BitOrAssign for u16_be

Source§

impl BitOrAssign for u16_le

Source§

impl BitOrAssign for u32_be

Source§

impl BitOrAssign for u32_le

Source§

impl BitOrAssign for u64_be

Source§

impl BitOrAssign for u64_le

Source§

impl BitOrAssign for u128_be

Source§

impl BitOrAssign for u128_le

Source§

impl BitOrAssign for NonZeroI16_ube

Source§

impl BitOrAssign for NonZeroI16_ule

Source§

impl BitOrAssign for NonZeroI32_ube

Source§

impl BitOrAssign for NonZeroI32_ule

Source§

impl BitOrAssign for NonZeroI64_ube

Source§

impl BitOrAssign for NonZeroI64_ule

Source§

impl BitOrAssign for NonZeroI128_ube

Source§

impl BitOrAssign for NonZeroI128_ule

Source§

impl BitOrAssign for NonZeroU16_ube

Source§

impl BitOrAssign for NonZeroU16_ule

Source§

impl BitOrAssign for NonZeroU32_ube

Source§

impl BitOrAssign for NonZeroU32_ule

Source§

impl BitOrAssign for NonZeroU64_ube

Source§

impl BitOrAssign for NonZeroU64_ule

Source§

impl BitOrAssign for NonZeroU128_ube

Source§

impl BitOrAssign for NonZeroU128_ule

Source§

impl BitOrAssign for i16_ube

Source§

impl BitOrAssign for i16_ule

Source§

impl BitOrAssign for i32_ube

Source§

impl BitOrAssign for i32_ule

Source§

impl BitOrAssign for i64_ube

Source§

impl BitOrAssign for i64_ule

Source§

impl BitOrAssign for i128_ube

Source§

impl BitOrAssign for i128_ule

Source§

impl BitOrAssign for u16_ube

Source§

impl BitOrAssign for u16_ule

Source§

impl BitOrAssign for u32_ube

Source§

impl BitOrAssign for u32_ule

Source§

impl BitOrAssign for u64_ube

Source§

impl BitOrAssign for u64_ule

Source§

impl BitOrAssign for u128_ube

Source§

impl BitOrAssign for u128_ule

1.22.0 · Source§

impl BitOrAssign<&bool> for bool

1.22.0 · Source§

impl BitOrAssign<&i8> for i8

1.22.0 · Source§

impl BitOrAssign<&i8> for Saturating<i8>

1.22.0 · Source§

impl BitOrAssign<&i8> for Wrapping<i8>

1.22.0 · Source§

impl BitOrAssign<&i16> for i16

1.22.0 · Source§

impl BitOrAssign<&i16> for Saturating<i16>

1.22.0 · Source§

impl BitOrAssign<&i16> for Wrapping<i16>

Source§

impl BitOrAssign<&i16> for i16_be

Source§

impl BitOrAssign<&i16> for i16_le

Source§

impl BitOrAssign<&i16> for i16_ube

Source§

impl BitOrAssign<&i16> for i16_ule

1.22.0 · Source§

impl BitOrAssign<&i32> for i32

1.22.0 · Source§

impl BitOrAssign<&i32> for Saturating<i32>

1.22.0 · Source§

impl BitOrAssign<&i32> for Wrapping<i32>

Source§

impl BitOrAssign<&i32> for i32_be

Source§

impl BitOrAssign<&i32> for i32_le

Source§

impl BitOrAssign<&i32> for i32_ube

Source§

impl BitOrAssign<&i32> for i32_ule

1.22.0 · Source§

impl BitOrAssign<&i64> for i64

1.22.0 · Source§

impl BitOrAssign<&i64> for Saturating<i64>

1.22.0 · Source§

impl BitOrAssign<&i64> for Wrapping<i64>

Source§

impl BitOrAssign<&i64> for i64_be

Source§

impl BitOrAssign<&i64> for i64_le

Source§

impl BitOrAssign<&i64> for i64_ube

Source§

impl BitOrAssign<&i64> for i64_ule

1.22.0 · Source§

impl BitOrAssign<&i128> for i128

1.22.0 · Source§

impl BitOrAssign<&i128> for Saturating<i128>

1.22.0 · Source§

impl BitOrAssign<&i128> for Wrapping<i128>

Source§

impl BitOrAssign<&i128> for i128_be

Source§

impl BitOrAssign<&i128> for i128_le

Source§

impl BitOrAssign<&i128> for i128_ube

Source§

impl BitOrAssign<&i128> for i128_ule

1.22.0 · Source§

impl BitOrAssign<&isize> for isize

1.22.0 · Source§

impl BitOrAssign<&isize> for Saturating<isize>

1.22.0 · Source§

impl BitOrAssign<&isize> for Wrapping<isize>

1.22.0 · Source§

impl BitOrAssign<&u8> for u8

1.22.0 · Source§

impl BitOrAssign<&u8> for Saturating<u8>

1.22.0 · Source§

impl BitOrAssign<&u8> for Wrapping<u8>

1.22.0 · Source§

impl BitOrAssign<&u16> for u16

1.22.0 · Source§

impl BitOrAssign<&u16> for Saturating<u16>

1.22.0 · Source§

impl BitOrAssign<&u16> for Wrapping<u16>

Source§

impl BitOrAssign<&u16> for u16_be

Source§

impl BitOrAssign<&u16> for u16_le

Source§

impl BitOrAssign<&u16> for u16_ube

Source§

impl BitOrAssign<&u16> for u16_ule

1.22.0 · Source§

impl BitOrAssign<&u32> for u32

1.22.0 · Source§

impl BitOrAssign<&u32> for Saturating<u32>

1.22.0 · Source§

impl BitOrAssign<&u32> for Wrapping<u32>

Source§

impl BitOrAssign<&u32> for u32_be

Source§

impl BitOrAssign<&u32> for u32_le

Source§

impl BitOrAssign<&u32> for u32_ube

Source§

impl BitOrAssign<&u32> for u32_ule

1.22.0 · Source§

impl BitOrAssign<&u64> for u64

1.22.0 · Source§

impl BitOrAssign<&u64> for Saturating<u64>

1.22.0 · Source§

impl BitOrAssign<&u64> for Wrapping<u64>

Source§

impl BitOrAssign<&u64> for u64_be

Source§

impl BitOrAssign<&u64> for u64_le

Source§

impl BitOrAssign<&u64> for u64_ube

Source§

impl BitOrAssign<&u64> for u64_ule

1.22.0 · Source§

impl BitOrAssign<&u128> for u128

1.22.0 · Source§

impl BitOrAssign<&u128> for Saturating<u128>

1.22.0 · Source§

impl BitOrAssign<&u128> for Wrapping<u128>

Source§

impl BitOrAssign<&u128> for u128_be

Source§

impl BitOrAssign<&u128> for u128_le

Source§

impl BitOrAssign<&u128> for u128_ube

Source§

impl BitOrAssign<&u128> for u128_ule

1.22.0 · Source§

impl BitOrAssign<&usize> for usize

1.22.0 · Source§

impl BitOrAssign<&usize> for Saturating<usize>

1.22.0 · Source§

impl BitOrAssign<&usize> for Wrapping<usize>

1.75.0 · Source§

impl BitOrAssign<&Ipv4Addr> for Ipv4Addr

1.75.0 · Source§

impl BitOrAssign<&Ipv6Addr> for Ipv6Addr

1.22.0 · Source§

impl BitOrAssign<&Saturating<i8>> for Saturating<i8>

1.22.0 · Source§

impl BitOrAssign<&Saturating<i16>> for Saturating<i16>

1.22.0 · Source§

impl BitOrAssign<&Saturating<i32>> for Saturating<i32>

1.22.0 · Source§

impl BitOrAssign<&Saturating<i64>> for Saturating<i64>

1.22.0 · Source§

impl BitOrAssign<&Saturating<i128>> for Saturating<i128>

1.22.0 · Source§

impl BitOrAssign<&Saturating<isize>> for Saturating<isize>

1.22.0 · Source§

impl BitOrAssign<&Saturating<u8>> for Saturating<u8>

1.22.0 · Source§

impl BitOrAssign<&Saturating<u16>> for Saturating<u16>

1.22.0 · Source§

impl BitOrAssign<&Saturating<u32>> for Saturating<u32>

1.22.0 · Source§

impl BitOrAssign<&Saturating<u64>> for Saturating<u64>

1.22.0 · Source§

impl BitOrAssign<&Saturating<u128>> for Saturating<u128>

1.22.0 · Source§

impl BitOrAssign<&Saturating<usize>> for Saturating<usize>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<i8>> for Wrapping<i8>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<i16>> for Wrapping<i16>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<i32>> for Wrapping<i32>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<i64>> for Wrapping<i64>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<i128>> for Wrapping<i128>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<isize>> for Wrapping<isize>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<u8>> for Wrapping<u8>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<u16>> for Wrapping<u16>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<u32>> for Wrapping<u32>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<u64>> for Wrapping<u64>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<u128>> for Wrapping<u128>

1.22.0 · Source§

impl BitOrAssign<&Wrapping<usize>> for Wrapping<usize>

Source§

impl BitOrAssign<&i16_be> for i16_be

Source§

impl BitOrAssign<&i16_le> for i16_le

Source§

impl BitOrAssign<&i32_be> for i32_be

Source§

impl BitOrAssign<&i32_le> for i32_le

Source§

impl BitOrAssign<&i64_be> for i64_be

Source§

impl BitOrAssign<&i64_le> for i64_le

Source§

impl BitOrAssign<&i128_be> for i128_be

Source§

impl BitOrAssign<&i128_le> for i128_le

Source§

impl BitOrAssign<&u16_be> for u16_be

Source§

impl BitOrAssign<&u16_le> for u16_le

Source§

impl BitOrAssign<&u32_be> for u32_be

Source§

impl BitOrAssign<&u32_le> for u32_le

Source§

impl BitOrAssign<&u64_be> for u64_be

Source§

impl BitOrAssign<&u64_le> for u64_le

Source§

impl BitOrAssign<&u128_be> for u128_be

Source§

impl BitOrAssign<&u128_le> for u128_le

Source§

impl BitOrAssign<&i16_ube> for i16_ube

Source§

impl BitOrAssign<&i16_ule> for i16_ule

Source§

impl BitOrAssign<&i32_ube> for i32_ube

Source§

impl BitOrAssign<&i32_ule> for i32_ule

Source§

impl BitOrAssign<&i64_ube> for i64_ube

Source§

impl BitOrAssign<&i64_ule> for i64_ule

Source§

impl BitOrAssign<&i128_ube> for i128_ube

Source§

impl BitOrAssign<&i128_ule> for i128_ule

Source§

impl BitOrAssign<&u16_ube> for u16_ube

Source§

impl BitOrAssign<&u16_ule> for u16_ule

Source§

impl BitOrAssign<&u32_ube> for u32_ube

Source§

impl BitOrAssign<&u32_ule> for u32_ule

Source§

impl BitOrAssign<&u64_ube> for u64_ube

Source§

impl BitOrAssign<&u64_ule> for u64_ule

Source§

impl BitOrAssign<&u128_ube> for u128_ube

Source§

impl BitOrAssign<&u128_ule> for u128_ule

1.74.0 · Source§

impl BitOrAssign<i8> for Saturating<i8>

1.60.0 · Source§

impl BitOrAssign<i8> for Wrapping<i8>

1.74.0 · Source§

impl BitOrAssign<i16> for Saturating<i16>

1.60.0 · Source§

impl BitOrAssign<i16> for Wrapping<i16>

Source§

impl BitOrAssign<i16> for i16_be

Source§

impl BitOrAssign<i16> for i16_le

Source§

impl BitOrAssign<i16> for i16_ube

Source§

impl BitOrAssign<i16> for i16_ule

1.74.0 · Source§

impl BitOrAssign<i32> for Saturating<i32>

1.60.0 · Source§

impl BitOrAssign<i32> for Wrapping<i32>

Source§

impl BitOrAssign<i32> for i32_be

Source§

impl BitOrAssign<i32> for i32_le

Source§

impl BitOrAssign<i32> for i32_ube

Source§

impl BitOrAssign<i32> for i32_ule

1.74.0 · Source§

impl BitOrAssign<i64> for Saturating<i64>

1.60.0 · Source§

impl BitOrAssign<i64> for Wrapping<i64>

Source§

impl BitOrAssign<i64> for i64_be

Source§

impl BitOrAssign<i64> for i64_le

Source§

impl BitOrAssign<i64> for i64_ube

Source§

impl BitOrAssign<i64> for i64_ule

1.74.0 · Source§

impl BitOrAssign<i128> for Saturating<i128>

1.60.0 · Source§

impl BitOrAssign<i128> for Wrapping<i128>

Source§

impl BitOrAssign<i128> for i128_be

Source§

impl BitOrAssign<i128> for i128_le

Source§

impl BitOrAssign<i128> for i128_ube

Source§

impl BitOrAssign<i128> for i128_ule

1.74.0 · Source§

impl BitOrAssign<isize> for Saturating<isize>

1.60.0 · Source§

impl BitOrAssign<isize> for Wrapping<isize>

1.74.0 · Source§

impl BitOrAssign<u8> for Saturating<u8>

1.60.0 · Source§

impl BitOrAssign<u8> for Wrapping<u8>

1.74.0 · Source§

impl BitOrAssign<u16> for Saturating<u16>

1.60.0 · Source§

impl BitOrAssign<u16> for Wrapping<u16>

Source§

impl BitOrAssign<u16> for u16_be

Source§

impl BitOrAssign<u16> for u16_le

Source§

impl BitOrAssign<u16> for u16_ube

Source§

impl BitOrAssign<u16> for u16_ule

1.74.0 · Source§

impl BitOrAssign<u32> for Saturating<u32>

1.60.0 · Source§

impl BitOrAssign<u32> for Wrapping<u32>

Source§

impl BitOrAssign<u32> for u32_be

Source§

impl BitOrAssign<u32> for u32_le

Source§

impl BitOrAssign<u32> for u32_ube

Source§

impl BitOrAssign<u32> for u32_ule

1.74.0 · Source§

impl BitOrAssign<u64> for Saturating<u64>

1.60.0 · Source§

impl BitOrAssign<u64> for Wrapping<u64>

Source§

impl BitOrAssign<u64> for u64_be

Source§

impl BitOrAssign<u64> for u64_le

Source§

impl BitOrAssign<u64> for u64_ube

Source§

impl BitOrAssign<u64> for u64_ule

1.74.0 · Source§

impl BitOrAssign<u128> for Saturating<u128>

1.60.0 · Source§

impl BitOrAssign<u128> for Wrapping<u128>

Source§

impl BitOrAssign<u128> for u128_be

Source§

impl BitOrAssign<u128> for u128_le

Source§

impl BitOrAssign<u128> for u128_ube

Source§

impl BitOrAssign<u128> for u128_ule

1.74.0 · Source§

impl BitOrAssign<usize> for Saturating<usize>

1.60.0 · Source§

impl BitOrAssign<usize> for Wrapping<usize>

Source§

impl BitOrAssign<NonZero<i16>> for NonZeroI16_be

Source§

impl BitOrAssign<NonZero<i16>> for NonZeroI16_le

Source§

impl BitOrAssign<NonZero<i16>> for NonZeroI16_ube

Source§

impl BitOrAssign<NonZero<i16>> for NonZeroI16_ule

Source§

impl BitOrAssign<NonZero<i32>> for NonZeroI32_be

Source§

impl BitOrAssign<NonZero<i32>> for NonZeroI32_le

Source§

impl BitOrAssign<NonZero<i32>> for NonZeroI32_ube

Source§

impl BitOrAssign<NonZero<i32>> for NonZeroI32_ule

Source§

impl BitOrAssign<NonZero<i64>> for NonZeroI64_be

Source§

impl BitOrAssign<NonZero<i64>> for NonZeroI64_le

Source§

impl BitOrAssign<NonZero<i64>> for NonZeroI64_ube

Source§

impl BitOrAssign<NonZero<i64>> for NonZeroI64_ule

Source§

impl BitOrAssign<NonZero<i128>> for NonZeroI128_be

Source§

impl BitOrAssign<NonZero<i128>> for NonZeroI128_le

Source§

impl BitOrAssign<NonZero<i128>> for NonZeroI128_ube

Source§

impl BitOrAssign<NonZero<i128>> for NonZeroI128_ule

Source§

impl BitOrAssign<NonZero<u16>> for NonZeroU16_be

Source§

impl BitOrAssign<NonZero<u16>> for NonZeroU16_le

Source§

impl BitOrAssign<NonZero<u16>> for NonZeroU16_ube

Source§

impl BitOrAssign<NonZero<u16>> for NonZeroU16_ule

Source§

impl BitOrAssign<NonZero<u32>> for NonZeroU32_be

Source§

impl BitOrAssign<NonZero<u32>> for NonZeroU32_le

Source§

impl BitOrAssign<NonZero<u32>> for NonZeroU32_ube

Source§

impl BitOrAssign<NonZero<u32>> for NonZeroU32_ule

Source§

impl BitOrAssign<NonZero<u64>> for NonZeroU64_be

Source§

impl BitOrAssign<NonZero<u64>> for NonZeroU64_le

Source§

impl BitOrAssign<NonZero<u64>> for NonZeroU64_ube

Source§

impl BitOrAssign<NonZero<u64>> for NonZeroU64_ule

Source§

impl BitOrAssign<NonZero<u128>> for NonZeroU128_be

Source§

impl BitOrAssign<NonZero<u128>> for NonZeroU128_le

Source§

impl BitOrAssign<NonZero<u128>> for NonZeroU128_ube

Source§

impl BitOrAssign<NonZero<u128>> for NonZeroU128_ule

1.45.0 · Source§

impl<T> BitOrAssign for NonZero<T>
where T: ZeroablePrimitive, NonZero<T>: BitOr<Output = NonZero<T>>,

1.45.0 · Source§

impl<T> BitOrAssign<T> for NonZero<T>
where T: ZeroablePrimitive, NonZero<T>: BitOr<T, Output = NonZero<T>>,

Source§

impl<T, O> BitOrAssign<O> for EnumSet<T>
where T: EnumSetType, O: Into<EnumSet<T>>,

Source§

impl<T, S, A> BitOrAssign<&HashSet<T, S, A>> for HashSet<T, S, A>
where T: Eq + Hash + Clone, S: BuildHasher, A: Allocator,

Source§

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

Source§

impl<T, const N: usize> BitOrAssign for Mask<T, N>

Source§

impl<T, const N: usize> BitOrAssign<bool> for Mask<T, N>