Trait otter_api_tests::imports::failure::_core::ops::BitXorAssign1.8.0[][src]

pub trait BitXorAssign<Rhs = Self> {
    fn bitxor_assign(&mut self, rhs: Rhs);
}
Expand description

The bitwise XOR assignment operator ^=.

Examples

use std::ops::BitXorAssign;

#[derive(Debug, PartialEq)]
struct Personality {
    has_soul: bool,
    likes_knitting: bool,
}

impl BitXorAssign for Personality {
    fn bitxor_assign(&mut self, rhs: Self) {
        self.has_soul ^= rhs.has_soul;
        self.likes_knitting ^= rhs.likes_knitting;
    }
}

let mut personality = Personality { has_soul: false, likes_knitting: true };
personality ^= Personality { has_soul: true, likes_knitting: true };
assert_eq!(personality, Personality { has_soul: true, likes_knitting: false});

Required methods

fn bitxor_assign(&mut self, rhs: Rhs)[src]

Performs the ^= operation.

Examples

let mut x = true;
x ^= false;
assert_eq!(x, true);

let mut x = true;
x ^= true;
assert_eq!(x, false);

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

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

Implementations on Foreign Types

impl<'_> BitXorAssign<&'_ isize> for isize[src]

pub fn bitxor_assign(&mut self, other: &isize)[src]

impl<'_> BitXorAssign<&'_ u8> for u8[src]

pub fn bitxor_assign(&mut self, other: &u8)[src]

impl<'_> BitXorAssign<&'_ i16> for i16[src]

pub fn bitxor_assign(&mut self, other: &i16)[src]

impl BitXorAssign<bool> for bool[src]

pub fn bitxor_assign(&mut self, other: bool)[src]

impl BitXorAssign<i128> for i128[src]

pub fn bitxor_assign(&mut self, other: i128)[src]

impl<'_> BitXorAssign<&'_ i128> for i128[src]

pub fn bitxor_assign(&mut self, other: &i128)[src]

impl<'_> BitXorAssign<&'_ usize> for usize[src]

pub fn bitxor_assign(&mut self, other: &usize)[src]

impl<'_> BitXorAssign<&'_ u128> for u128[src]

pub fn bitxor_assign(&mut self, other: &u128)[src]

impl BitXorAssign<i8> for i8[src]

pub fn bitxor_assign(&mut self, other: i8)[src]

impl<'_> BitXorAssign<&'_ i32> for i32[src]

pub fn bitxor_assign(&mut self, other: &i32)[src]

impl BitXorAssign<u128> for u128[src]

pub fn bitxor_assign(&mut self, other: u128)[src]

impl BitXorAssign<u64> for u64[src]

pub fn bitxor_assign(&mut self, other: u64)[src]

impl<'_> BitXorAssign<&'_ i8> for i8[src]

pub fn bitxor_assign(&mut self, other: &i8)[src]

impl BitXorAssign<u8> for u8[src]

pub fn bitxor_assign(&mut self, other: u8)[src]

impl BitXorAssign<i64> for i64[src]

pub fn bitxor_assign(&mut self, other: i64)[src]

impl<'_> BitXorAssign<&'_ bool> for bool[src]

pub fn bitxor_assign(&mut self, other: &bool)[src]

impl BitXorAssign<i32> for i32[src]

pub fn bitxor_assign(&mut self, other: i32)[src]

impl BitXorAssign<usize> for usize[src]

pub fn bitxor_assign(&mut self, other: usize)[src]

impl<'_> BitXorAssign<&'_ u32> for u32[src]

pub fn bitxor_assign(&mut self, other: &u32)[src]

impl<'_> BitXorAssign<&'_ u16> for u16[src]

pub fn bitxor_assign(&mut self, other: &u16)[src]

impl BitXorAssign<u32> for u32[src]

pub fn bitxor_assign(&mut self, other: u32)[src]

impl BitXorAssign<i16> for i16[src]

pub fn bitxor_assign(&mut self, other: i16)[src]

impl<'_> BitXorAssign<&'_ u64> for u64[src]

pub fn bitxor_assign(&mut self, other: &u64)[src]

impl BitXorAssign<u16> for u16[src]

pub fn bitxor_assign(&mut self, other: u16)[src]

impl BitXorAssign<isize> for isize[src]

pub fn bitxor_assign(&mut self, other: isize)[src]

impl<'_> BitXorAssign<&'_ i64> for i64[src]

pub fn bitxor_assign(&mut self, other: &i64)[src]

impl BitXorAssign<Op> for Op

pub fn bitxor_assign(&mut self, other: Op)

Toggles the set of flags.

impl<T> BitXorAssign<T> for Ready where
    T: Into<Ready>, 
[src]

pub fn bitxor_assign(&mut self, other: T)[src]

impl BitXorAssign<EventMask> for EventMask

pub fn bitxor_assign(&mut self, other: EventMask)

Toggles the set of flags.

impl BitXorAssign<WatchMask> for WatchMask

pub fn bitxor_assign(&mut self, other: WatchMask)

Toggles the set of flags.

impl BitXorAssign<Choice> for Choice[src]

pub fn bitxor_assign(&mut self, rhs: Choice)[src]

impl BitXorAssign<Transformations> for Transformations

pub fn bitxor_assign(&mut self, other: Transformations)

Toggles the set of flags.

impl BitXorAssign<ShutdownState> for ShutdownState[src]

pub fn bitxor_assign(&mut self, other: ShutdownState)[src]

Toggles the set of flags.

impl BitXorAssign<CMSOptions> for CMSOptions[src]

pub fn bitxor_assign(&mut self, other: CMSOptions)[src]

Toggles the set of flags.

impl BitXorAssign<SslVerifyMode> for SslVerifyMode[src]

pub fn bitxor_assign(&mut self, other: SslVerifyMode)[src]

Toggles the set of flags.

impl BitXorAssign<Pkcs7Flags> for Pkcs7Flags[src]

pub fn bitxor_assign(&mut self, other: Pkcs7Flags)[src]

Toggles the set of flags.

impl BitXorAssign<X509CheckFlags> for X509CheckFlags[src]

pub fn bitxor_assign(&mut self, other: X509CheckFlags)[src]

Toggles the set of flags.

impl BitXorAssign<OcspFlag> for OcspFlag[src]

pub fn bitxor_assign(&mut self, other: OcspFlag)[src]

Toggles the set of flags.

impl BitXorAssign<ExtensionContext> for ExtensionContext[src]

pub fn bitxor_assign(&mut self, other: ExtensionContext)[src]

Toggles the set of flags.

impl BitXorAssign<SslMode> for SslMode[src]

pub fn bitxor_assign(&mut self, other: SslMode)[src]

Toggles the set of flags.

impl BitXorAssign<SslOptions> for SslOptions[src]

pub fn bitxor_assign(&mut self, other: SslOptions)[src]

Toggles the set of flags.

impl BitXorAssign<SslSessionCacheMode> for SslSessionCacheMode[src]

pub fn bitxor_assign(&mut self, other: SslSessionCacheMode)[src]

Toggles the set of flags.

impl BitXorAssign<X509VerifyFlags> for X509VerifyFlags[src]

pub fn bitxor_assign(&mut self, other: X509VerifyFlags)[src]

Toggles the set of flags.

Implementors

impl BitXorAssign<Wrapping<i8>> for Wrapping<i8>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<i8>)[src]

impl BitXorAssign<Wrapping<i16>> for Wrapping<i16>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<i16>)[src]

impl BitXorAssign<Wrapping<i32>> for Wrapping<i32>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<i32>)[src]

impl BitXorAssign<Wrapping<i64>> for Wrapping<i64>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<i64>)[src]

impl BitXorAssign<Wrapping<i128>> for Wrapping<i128>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<i128>)[src]

impl BitXorAssign<Wrapping<isize>> for Wrapping<isize>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<isize>)[src]

impl BitXorAssign<Wrapping<u8>> for Wrapping<u8>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<u8>)[src]

impl BitXorAssign<Wrapping<u16>> for Wrapping<u16>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<u16>)[src]

impl BitXorAssign<Wrapping<u32>> for Wrapping<u32>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<u32>)[src]

impl BitXorAssign<Wrapping<u64>> for Wrapping<u64>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<u64>)[src]

impl BitXorAssign<Wrapping<u128>> for Wrapping<u128>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<u128>)[src]

impl BitXorAssign<Wrapping<usize>> for Wrapping<usize>[src]

pub fn bitxor_assign(&mut self, other: Wrapping<usize>)[src]

impl BitXorAssign<AccessFlags> for AccessFlags

pub fn bitxor_assign(&mut self, other: AccessFlags)

Toggles the set of flags.

impl BitXorAssign<AtFlags> for AtFlags

pub fn bitxor_assign(&mut self, other: AtFlags)

Toggles the set of flags.

impl BitXorAssign<FallocateFlags> for FallocateFlags

pub fn bitxor_assign(&mut self, other: FallocateFlags)

Toggles the set of flags.

impl BitXorAssign<FdFlag> for otter_api_tests::imports::nix::fcntl::FdFlag

pub fn bitxor_assign(&mut self, other: FdFlag)

Toggles the set of flags.

impl BitXorAssign<OFlag> for OFlag

pub fn bitxor_assign(&mut self, other: OFlag)

Toggles the set of flags.

impl BitXorAssign<SealFlag> for SealFlag

pub fn bitxor_assign(&mut self, other: SealFlag)

Toggles the set of flags.

impl BitXorAssign<SpliceFFlags> for SpliceFFlags

pub fn bitxor_assign(&mut self, other: SpliceFFlags)

Toggles the set of flags.

impl BitXorAssign<DeleteModuleFlags> for DeleteModuleFlags

pub fn bitxor_assign(&mut self, other: DeleteModuleFlags)

Toggles the set of flags.

impl BitXorAssign<ModuleInitFlags> for ModuleInitFlags

pub fn bitxor_assign(&mut self, other: ModuleInitFlags)

Toggles the set of flags.

impl BitXorAssign<MntFlags> for MntFlags

pub fn bitxor_assign(&mut self, other: MntFlags)

Toggles the set of flags.

impl BitXorAssign<MsFlags> for otter_api_tests::imports::nix::mount::MsFlags

pub fn bitxor_assign(&mut self, other: MsFlags)

Toggles the set of flags.

impl BitXorAssign<FdFlag> for otter_api_tests::imports::nix::mqueue::FdFlag

pub fn bitxor_assign(&mut self, other: FdFlag)

Toggles the set of flags.

impl BitXorAssign<MQ_OFlag> for MQ_OFlag

pub fn bitxor_assign(&mut self, other: MQ_OFlag)

Toggles the set of flags.

impl BitXorAssign<InterfaceFlags> for InterfaceFlags

pub fn bitxor_assign(&mut self, other: InterfaceFlags)

Toggles the set of flags.

impl BitXorAssign<PollFlags> for PollFlags

pub fn bitxor_assign(&mut self, other: PollFlags)

Toggles the set of flags.

impl BitXorAssign<CloneFlags> for CloneFlags

pub fn bitxor_assign(&mut self, other: CloneFlags)

Toggles the set of flags.

impl BitXorAssign<EpollCreateFlags> for EpollCreateFlags

pub fn bitxor_assign(&mut self, other: EpollCreateFlags)

Toggles the set of flags.

impl BitXorAssign<EpollFlags> for EpollFlags

pub fn bitxor_assign(&mut self, other: EpollFlags)

Toggles the set of flags.

impl BitXorAssign<EfdFlags> for EfdFlags

pub fn bitxor_assign(&mut self, other: EfdFlags)

Toggles the set of flags.

impl BitXorAssign<AddWatchFlags> for AddWatchFlags

pub fn bitxor_assign(&mut self, other: AddWatchFlags)

Toggles the set of flags.

impl BitXorAssign<InitFlags> for InitFlags

pub fn bitxor_assign(&mut self, other: InitFlags)

Toggles the set of flags.

impl BitXorAssign<MemFdCreateFlag> for MemFdCreateFlag

pub fn bitxor_assign(&mut self, other: MemFdCreateFlag)

Toggles the set of flags.

impl BitXorAssign<MRemapFlags> for MRemapFlags

pub fn bitxor_assign(&mut self, other: MRemapFlags)

Toggles the set of flags.

impl BitXorAssign<MapFlags> for MapFlags

pub fn bitxor_assign(&mut self, other: MapFlags)

Toggles the set of flags.

impl BitXorAssign<MlockAllFlags> for MlockAllFlags

pub fn bitxor_assign(&mut self, other: MlockAllFlags)

Toggles the set of flags.

impl BitXorAssign<MsFlags> for otter_api_tests::imports::nix::sys::mman::MsFlags

pub fn bitxor_assign(&mut self, other: MsFlags)

Toggles the set of flags.

impl BitXorAssign<ProtFlags> for ProtFlags

pub fn bitxor_assign(&mut self, other: ProtFlags)

Toggles the set of flags.

impl BitXorAssign<Persona> for Persona

pub fn bitxor_assign(&mut self, other: Persona)

Toggles the set of flags.

impl BitXorAssign<Options> for Options

pub fn bitxor_assign(&mut self, other: Options)

Toggles the set of flags.

impl BitXorAssign<QuotaValidFlags> for QuotaValidFlags

pub fn bitxor_assign(&mut self, other: QuotaValidFlags)

Toggles the set of flags.

impl BitXorAssign<SaFlags> for SaFlags

pub fn bitxor_assign(&mut self, other: SaFlags)

Toggles the set of flags.

impl BitXorAssign<SfdFlags> for SfdFlags

pub fn bitxor_assign(&mut self, other: SfdFlags)

Toggles the set of flags.

impl BitXorAssign<MsgFlags> for MsgFlags

pub fn bitxor_assign(&mut self, other: MsgFlags)

Toggles the set of flags.

impl BitXorAssign<SockFlag> for SockFlag

pub fn bitxor_assign(&mut self, other: SockFlag)

Toggles the set of flags.

impl BitXorAssign<Mode> for Mode

pub fn bitxor_assign(&mut self, other: Mode)

Toggles the set of flags.

impl BitXorAssign<SFlag> for SFlag

pub fn bitxor_assign(&mut self, other: SFlag)

Toggles the set of flags.

impl BitXorAssign<FsFlags> for FsFlags

pub fn bitxor_assign(&mut self, other: FsFlags)

Toggles the set of flags.

impl BitXorAssign<ControlFlags> for ControlFlags

pub fn bitxor_assign(&mut self, other: ControlFlags)

Toggles the set of flags.

impl BitXorAssign<InputFlags> for InputFlags

pub fn bitxor_assign(&mut self, other: InputFlags)

Toggles the set of flags.

impl BitXorAssign<LocalFlags> for LocalFlags

pub fn bitxor_assign(&mut self, other: LocalFlags)

Toggles the set of flags.

impl BitXorAssign<OutputFlags> for OutputFlags

pub fn bitxor_assign(&mut self, other: OutputFlags)

Toggles the set of flags.

impl BitXorAssign<TimerFlags> for TimerFlags

pub fn bitxor_assign(&mut self, other: TimerFlags)

Toggles the set of flags.

impl BitXorAssign<TimerSetTimeFlags> for TimerSetTimeFlags

pub fn bitxor_assign(&mut self, other: TimerSetTimeFlags)

Toggles the set of flags.

impl BitXorAssign<WaitPidFlag> for WaitPidFlag

pub fn bitxor_assign(&mut self, other: WaitPidFlag)

Toggles the set of flags.

impl<'_> BitXorAssign<&'_ Wrapping<i8>> for Wrapping<i8>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<i8>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<i16>> for Wrapping<i16>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<i16>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<i32>> for Wrapping<i32>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<i32>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<i64>> for Wrapping<i64>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<i64>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<i128>> for Wrapping<i128>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<i128>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<isize>> for Wrapping<isize>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<isize>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<u8>> for Wrapping<u8>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<u8>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<u16>> for Wrapping<u16>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<u16>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<u32>> for Wrapping<u32>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<u32>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<u64>> for Wrapping<u64>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<u64>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<u128>> for Wrapping<u128>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<u128>)[src]

impl<'_> BitXorAssign<&'_ Wrapping<usize>> for Wrapping<usize>1.22.0[src]

pub fn bitxor_assign(&mut self, other: &Wrapping<usize>)[src]