Trait wasmer_types::lib::std::ops::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 BigEndian<i16>

source§

impl BitOrAssign for BigEndian<i32>

source§

impl BitOrAssign for BigEndian<i64>

source§

impl BitOrAssign for BigEndian<i128>

source§

impl BitOrAssign for BigEndian<u16>

source§

impl BitOrAssign for BigEndian<u32>

source§

impl BitOrAssign for BigEndian<u64>

source§

impl BitOrAssign for BigEndian<u128>

source§

impl BitOrAssign for BigEndian<NonZero<i16>>

source§

impl BitOrAssign for BigEndian<NonZero<i32>>

source§

impl BitOrAssign for BigEndian<NonZero<i64>>

source§

impl BitOrAssign for BigEndian<NonZero<i128>>

source§

impl BitOrAssign for BigEndian<NonZero<u16>>

source§

impl BitOrAssign for BigEndian<NonZero<u32>>

source§

impl BitOrAssign for BigEndian<NonZero<u64>>

source§

impl BitOrAssign for BigEndian<NonZero<u128>>

source§

impl BitOrAssign for LittleEndian<i16>

source§

impl BitOrAssign for LittleEndian<i32>

source§

impl BitOrAssign for LittleEndian<i64>

source§

impl BitOrAssign for LittleEndian<i128>

source§

impl BitOrAssign for LittleEndian<u16>

source§

impl BitOrAssign for LittleEndian<u32>

source§

impl BitOrAssign for LittleEndian<u64>

source§

impl BitOrAssign for LittleEndian<u128>

source§

impl BitOrAssign for LittleEndian<NonZero<i16>>

source§

impl BitOrAssign for LittleEndian<NonZero<i32>>

source§

impl BitOrAssign for LittleEndian<NonZero<i64>>

source§

impl BitOrAssign for LittleEndian<NonZero<i128>>

source§

impl BitOrAssign for LittleEndian<NonZero<u16>>

source§

impl BitOrAssign for LittleEndian<NonZero<u32>>

source§

impl BitOrAssign for LittleEndian<NonZero<u64>>

source§

impl BitOrAssign for LittleEndian<NonZero<u128>>

source§

impl BitOrAssign for NativeEndian<i16>

source§

impl BitOrAssign for NativeEndian<i32>

source§

impl BitOrAssign for NativeEndian<i64>

source§

impl BitOrAssign for NativeEndian<i128>

source§

impl BitOrAssign for NativeEndian<u16>

source§

impl BitOrAssign for NativeEndian<u32>

source§

impl BitOrAssign for NativeEndian<u64>

source§

impl BitOrAssign for NativeEndian<u128>

source§

impl BitOrAssign for NativeEndian<NonZero<i16>>

source§

impl BitOrAssign for NativeEndian<NonZero<i32>>

source§

impl BitOrAssign for NativeEndian<NonZero<i64>>

source§

impl BitOrAssign for NativeEndian<NonZero<i128>>

source§

impl BitOrAssign for NativeEndian<NonZero<u16>>

source§

impl BitOrAssign for NativeEndian<NonZero<u32>>

source§

impl BitOrAssign for NativeEndian<NonZero<u64>>

source§

impl BitOrAssign for NativeEndian<NonZero<u128>>

source§

impl BitOrAssign for CreateFlags

source§

impl BitOrAssign for WatchFlags

source§

impl BitOrAssign for Access

source§

impl BitOrAssign for AtFlags

source§

impl BitOrAssign for FallocateFlags

source§

impl BitOrAssign for MemfdFlags

source§

impl BitOrAssign for Mode

source§

impl BitOrAssign for OFlags

source§

impl BitOrAssign for RenameFlags

source§

impl BitOrAssign for ResolveFlags

source§

impl BitOrAssign for SealFlags

source§

impl BitOrAssign for StatVfsMountFlags

source§

impl BitOrAssign for StatxFlags

source§

impl BitOrAssign for DupFlags

source§

impl BitOrAssign for FdFlags

source§

impl BitOrAssign for ReadWriteFlags

source§

impl BitOrAssign for MountFlags

source§

impl BitOrAssign for MountPropagationFlags

source§

impl BitOrAssign for UnmountFlags

source§

impl BitOrAssign for IFlags

source§

impl BitOrAssign for XattrFlags

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 BigEndian<i16>

source§

impl BitOrAssign<&i16> for LittleEndian<i16>

source§

impl BitOrAssign<&i16> for NativeEndian<i16>

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 BigEndian<i32>

source§

impl BitOrAssign<&i32> for LittleEndian<i32>

source§

impl BitOrAssign<&i32> for NativeEndian<i32>

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 BigEndian<i64>

source§

impl BitOrAssign<&i64> for LittleEndian<i64>

source§

impl BitOrAssign<&i64> for NativeEndian<i64>

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 BigEndian<i128>

source§

impl BitOrAssign<&i128> for LittleEndian<i128>

source§

impl BitOrAssign<&i128> for NativeEndian<i128>

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 BigEndian<u16>

source§

impl BitOrAssign<&u16> for LittleEndian<u16>

source§

impl BitOrAssign<&u16> for NativeEndian<u16>

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 BigEndian<u32>

source§

impl BitOrAssign<&u32> for LittleEndian<u32>

source§

impl BitOrAssign<&u32> for NativeEndian<u32>

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 BigEndian<u64>

source§

impl BitOrAssign<&u64> for LittleEndian<u64>

source§

impl BitOrAssign<&u64> for NativeEndian<u64>

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 BigEndian<u128>

source§

impl BitOrAssign<&u128> for LittleEndian<u128>

source§

impl BitOrAssign<&u128> for NativeEndian<u128>

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<&BigEndian<i16>> for BigEndian<i16>

source§

impl BitOrAssign<&BigEndian<i32>> for BigEndian<i32>

source§

impl BitOrAssign<&BigEndian<i64>> for BigEndian<i64>

source§

impl BitOrAssign<&BigEndian<i128>> for BigEndian<i128>

source§

impl BitOrAssign<&BigEndian<u16>> for BigEndian<u16>

source§

impl BitOrAssign<&BigEndian<u32>> for BigEndian<u32>

source§

impl BitOrAssign<&BigEndian<u64>> for BigEndian<u64>

source§

impl BitOrAssign<&BigEndian<u128>> for BigEndian<u128>

source§

impl BitOrAssign<&LittleEndian<i16>> for LittleEndian<i16>

source§

impl BitOrAssign<&LittleEndian<i32>> for LittleEndian<i32>

source§

impl BitOrAssign<&LittleEndian<i64>> for LittleEndian<i64>

source§

impl BitOrAssign<&LittleEndian<i128>> for LittleEndian<i128>

source§

impl BitOrAssign<&LittleEndian<u16>> for LittleEndian<u16>

source§

impl BitOrAssign<&LittleEndian<u32>> for LittleEndian<u32>

source§

impl BitOrAssign<&LittleEndian<u64>> for LittleEndian<u64>

source§

impl BitOrAssign<&LittleEndian<u128>> for LittleEndian<u128>

source§

impl BitOrAssign<&NativeEndian<i16>> for NativeEndian<i16>

source§

impl BitOrAssign<&NativeEndian<i32>> for NativeEndian<i32>

source§

impl BitOrAssign<&NativeEndian<i64>> for NativeEndian<i64>

source§

impl BitOrAssign<&NativeEndian<i128>> for NativeEndian<i128>

source§

impl BitOrAssign<&NativeEndian<u16>> for NativeEndian<u16>

source§

impl BitOrAssign<&NativeEndian<u32>> for NativeEndian<u32>

source§

impl BitOrAssign<&NativeEndian<u64>> for NativeEndian<u64>

source§

impl BitOrAssign<&NativeEndian<u128>> for NativeEndian<u128>

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 BigEndian<i16>

source§

impl BitOrAssign<i16> for LittleEndian<i16>

source§

impl BitOrAssign<i16> for NativeEndian<i16>

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 BigEndian<i32>

source§

impl BitOrAssign<i32> for LittleEndian<i32>

source§

impl BitOrAssign<i32> for NativeEndian<i32>

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 BigEndian<i64>

source§

impl BitOrAssign<i64> for LittleEndian<i64>

source§

impl BitOrAssign<i64> for NativeEndian<i64>

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 BigEndian<i128>

source§

impl BitOrAssign<i128> for LittleEndian<i128>

source§

impl BitOrAssign<i128> for NativeEndian<i128>

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 BigEndian<u16>

source§

impl BitOrAssign<u16> for LittleEndian<u16>

source§

impl BitOrAssign<u16> for NativeEndian<u16>

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 BigEndian<u32>

source§

impl BitOrAssign<u32> for LittleEndian<u32>

source§

impl BitOrAssign<u32> for NativeEndian<u32>

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 BigEndian<u64>

source§

impl BitOrAssign<u64> for LittleEndian<u64>

source§

impl BitOrAssign<u64> for NativeEndian<u64>

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 BigEndian<u128>

source§

impl BitOrAssign<u128> for LittleEndian<u128>

source§

impl BitOrAssign<u128> for NativeEndian<u128>

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 BigEndian<NonZero<i16>>

source§

impl BitOrAssign<NonZero<i16>> for LittleEndian<NonZero<i16>>

source§

impl BitOrAssign<NonZero<i16>> for NativeEndian<NonZero<i16>>

source§

impl BitOrAssign<NonZero<i32>> for BigEndian<NonZero<i32>>

source§

impl BitOrAssign<NonZero<i32>> for LittleEndian<NonZero<i32>>

source§

impl BitOrAssign<NonZero<i32>> for NativeEndian<NonZero<i32>>

source§

impl BitOrAssign<NonZero<i64>> for BigEndian<NonZero<i64>>

source§

impl BitOrAssign<NonZero<i64>> for LittleEndian<NonZero<i64>>

source§

impl BitOrAssign<NonZero<i64>> for NativeEndian<NonZero<i64>>

source§

impl BitOrAssign<NonZero<i128>> for BigEndian<NonZero<i128>>

source§

impl BitOrAssign<NonZero<i128>> for LittleEndian<NonZero<i128>>

source§

impl BitOrAssign<NonZero<i128>> for NativeEndian<NonZero<i128>>

source§

impl BitOrAssign<NonZero<u16>> for BigEndian<NonZero<u16>>

source§

impl BitOrAssign<NonZero<u16>> for LittleEndian<NonZero<u16>>

source§

impl BitOrAssign<NonZero<u16>> for NativeEndian<NonZero<u16>>

source§

impl BitOrAssign<NonZero<u32>> for BigEndian<NonZero<u32>>

source§

impl BitOrAssign<NonZero<u32>> for LittleEndian<NonZero<u32>>

source§

impl BitOrAssign<NonZero<u32>> for NativeEndian<NonZero<u32>>

source§

impl BitOrAssign<NonZero<u64>> for BigEndian<NonZero<u64>>

source§

impl BitOrAssign<NonZero<u64>> for LittleEndian<NonZero<u64>>

source§

impl BitOrAssign<NonZero<u64>> for NativeEndian<NonZero<u64>>

source§

impl BitOrAssign<NonZero<u128>> for BigEndian<NonZero<u128>>

source§

impl BitOrAssign<NonZero<u128>> for LittleEndian<NonZero<u128>>

source§

impl BitOrAssign<NonZero<u128>> for NativeEndian<NonZero<u128>>

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, 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>