Trait otter_api_tests::imports::failure::_core::ops::BitOrAssign 1.8.0[−][src]
pub trait BitOrAssign<Rhs = Self> { fn bitor_assign(&mut self, rhs: Rhs); }
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
fn bitor_assign(&mut self, rhs: Rhs)
[src]
fn bitor_assign(&mut self, rhs: Rhs)
[src]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);
Implementations on Foreign Types
impl BitOrAssign<Op> for Op
impl BitOrAssign<Op> for Op
pub fn bitor_assign(&mut self, other: Op)
pub fn bitor_assign(&mut self, other: Op)
Adds the set of flags.
impl BitOrAssign<EventMask> for EventMask
impl BitOrAssign<EventMask> for EventMask
pub fn bitor_assign(&mut self, other: EventMask)
pub fn bitor_assign(&mut self, other: EventMask)
Adds the set of flags.
impl BitOrAssign<WatchMask> for WatchMask
impl BitOrAssign<WatchMask> for WatchMask
pub fn bitor_assign(&mut self, other: WatchMask)
pub fn bitor_assign(&mut self, other: WatchMask)
Adds the set of flags.
impl BitOrAssign<Transformations> for Transformations
impl BitOrAssign<Transformations> for Transformations
pub fn bitor_assign(&mut self, other: Transformations)
pub fn bitor_assign(&mut self, other: Transformations)
Adds the set of flags.
impl BitOrAssign<FileType> for FileType
impl BitOrAssign<FileType> for FileType
pub fn bitor_assign(&mut self, other: FileType)
pub fn bitor_assign(&mut self, other: FileType)
Adds the set of flags.
impl BitOrAssign<Interest> for Interest
impl BitOrAssign<Interest> for Interest
pub fn bitor_assign(&mut self, other: Interest)
impl BitOrAssign<Ready> for Ready
impl BitOrAssign<Ready> for Ready
pub fn bitor_assign(&mut self, other: Ready)
Adds the set of flags.
Adds the set of flags.
Adds the set of flags.
Adds the set of flags.
Adds the set of flags.
Adds the set of flags.
Adds the set of flags.
Adds the set of flags.
Adds the set of flags.
Adds the set of flags.
Adds the set of flags.
Implementors
impl BitOrAssign<AccessFlags> for AccessFlags
impl BitOrAssign<AccessFlags> for AccessFlags
pub fn bitor_assign(&mut self, other: AccessFlags)
pub fn bitor_assign(&mut self, other: AccessFlags)
Adds the set of flags.
impl BitOrAssign<AtFlags> for AtFlags
impl BitOrAssign<AtFlags> for AtFlags
pub fn bitor_assign(&mut self, other: AtFlags)
pub fn bitor_assign(&mut self, other: AtFlags)
Adds the set of flags.
impl BitOrAssign<FallocateFlags> for FallocateFlags
impl BitOrAssign<FallocateFlags> for FallocateFlags
pub fn bitor_assign(&mut self, other: FallocateFlags)
pub fn bitor_assign(&mut self, other: FallocateFlags)
Adds the set of flags.
impl BitOrAssign<FdFlag> for otter_api_tests::imports::nix::fcntl::FdFlag
impl BitOrAssign<FdFlag> for otter_api_tests::imports::nix::fcntl::FdFlag
pub fn bitor_assign(&mut self, other: FdFlag)
pub fn bitor_assign(&mut self, other: FdFlag)
Adds the set of flags.
impl BitOrAssign<OFlag> for OFlag
impl BitOrAssign<OFlag> for OFlag
pub fn bitor_assign(&mut self, other: OFlag)
pub fn bitor_assign(&mut self, other: OFlag)
Adds the set of flags.
impl BitOrAssign<SealFlag> for SealFlag
impl BitOrAssign<SealFlag> for SealFlag
pub fn bitor_assign(&mut self, other: SealFlag)
pub fn bitor_assign(&mut self, other: SealFlag)
Adds the set of flags.
impl BitOrAssign<SpliceFFlags> for SpliceFFlags
impl BitOrAssign<SpliceFFlags> for SpliceFFlags
pub fn bitor_assign(&mut self, other: SpliceFFlags)
pub fn bitor_assign(&mut self, other: SpliceFFlags)
Adds the set of flags.
impl BitOrAssign<DeleteModuleFlags> for DeleteModuleFlags
impl BitOrAssign<DeleteModuleFlags> for DeleteModuleFlags
pub fn bitor_assign(&mut self, other: DeleteModuleFlags)
pub fn bitor_assign(&mut self, other: DeleteModuleFlags)
Adds the set of flags.
impl BitOrAssign<ModuleInitFlags> for ModuleInitFlags
impl BitOrAssign<ModuleInitFlags> for ModuleInitFlags
pub fn bitor_assign(&mut self, other: ModuleInitFlags)
pub fn bitor_assign(&mut self, other: ModuleInitFlags)
Adds the set of flags.
impl BitOrAssign<MntFlags> for MntFlags
impl BitOrAssign<MntFlags> for MntFlags
pub fn bitor_assign(&mut self, other: MntFlags)
pub fn bitor_assign(&mut self, other: MntFlags)
Adds the set of flags.
impl BitOrAssign<MsFlags> for otter_api_tests::imports::nix::mount::MsFlags
impl BitOrAssign<MsFlags> for otter_api_tests::imports::nix::mount::MsFlags
pub fn bitor_assign(&mut self, other: MsFlags)
pub fn bitor_assign(&mut self, other: MsFlags)
Adds the set of flags.
impl BitOrAssign<FdFlag> for otter_api_tests::imports::nix::mqueue::FdFlag
impl BitOrAssign<FdFlag> for otter_api_tests::imports::nix::mqueue::FdFlag
pub fn bitor_assign(&mut self, other: FdFlag)
pub fn bitor_assign(&mut self, other: FdFlag)
Adds the set of flags.
impl BitOrAssign<MQ_OFlag> for MQ_OFlag
impl BitOrAssign<MQ_OFlag> for MQ_OFlag
pub fn bitor_assign(&mut self, other: MQ_OFlag)
pub fn bitor_assign(&mut self, other: MQ_OFlag)
Adds the set of flags.
impl BitOrAssign<InterfaceFlags> for InterfaceFlags
impl BitOrAssign<InterfaceFlags> for InterfaceFlags
pub fn bitor_assign(&mut self, other: InterfaceFlags)
pub fn bitor_assign(&mut self, other: InterfaceFlags)
Adds the set of flags.
impl BitOrAssign<PollFlags> for PollFlags
impl BitOrAssign<PollFlags> for PollFlags
pub fn bitor_assign(&mut self, other: PollFlags)
pub fn bitor_assign(&mut self, other: PollFlags)
Adds the set of flags.
impl BitOrAssign<CloneFlags> for CloneFlags
impl BitOrAssign<CloneFlags> for CloneFlags
pub fn bitor_assign(&mut self, other: CloneFlags)
pub fn bitor_assign(&mut self, other: CloneFlags)
Adds the set of flags.
impl BitOrAssign<EpollCreateFlags> for EpollCreateFlags
impl BitOrAssign<EpollCreateFlags> for EpollCreateFlags
pub fn bitor_assign(&mut self, other: EpollCreateFlags)
pub fn bitor_assign(&mut self, other: EpollCreateFlags)
Adds the set of flags.
impl BitOrAssign<EpollFlags> for EpollFlags
impl BitOrAssign<EpollFlags> for EpollFlags
pub fn bitor_assign(&mut self, other: EpollFlags)
pub fn bitor_assign(&mut self, other: EpollFlags)
Adds the set of flags.
impl BitOrAssign<EfdFlags> for EfdFlags
impl BitOrAssign<EfdFlags> for EfdFlags
pub fn bitor_assign(&mut self, other: EfdFlags)
pub fn bitor_assign(&mut self, other: EfdFlags)
Adds the set of flags.
impl BitOrAssign<AddWatchFlags> for AddWatchFlags
impl BitOrAssign<AddWatchFlags> for AddWatchFlags
pub fn bitor_assign(&mut self, other: AddWatchFlags)
pub fn bitor_assign(&mut self, other: AddWatchFlags)
Adds the set of flags.
impl BitOrAssign<InitFlags> for InitFlags
impl BitOrAssign<InitFlags> for InitFlags
pub fn bitor_assign(&mut self, other: InitFlags)
pub fn bitor_assign(&mut self, other: InitFlags)
Adds the set of flags.
impl BitOrAssign<MemFdCreateFlag> for MemFdCreateFlag
impl BitOrAssign<MemFdCreateFlag> for MemFdCreateFlag
pub fn bitor_assign(&mut self, other: MemFdCreateFlag)
pub fn bitor_assign(&mut self, other: MemFdCreateFlag)
Adds the set of flags.
impl BitOrAssign<MRemapFlags> for MRemapFlags
impl BitOrAssign<MRemapFlags> for MRemapFlags
pub fn bitor_assign(&mut self, other: MRemapFlags)
pub fn bitor_assign(&mut self, other: MRemapFlags)
Adds the set of flags.
impl BitOrAssign<MapFlags> for MapFlags
impl BitOrAssign<MapFlags> for MapFlags
pub fn bitor_assign(&mut self, other: MapFlags)
pub fn bitor_assign(&mut self, other: MapFlags)
Adds the set of flags.
impl BitOrAssign<MlockAllFlags> for MlockAllFlags
impl BitOrAssign<MlockAllFlags> for MlockAllFlags
pub fn bitor_assign(&mut self, other: MlockAllFlags)
pub fn bitor_assign(&mut self, other: MlockAllFlags)
Adds the set of flags.
impl BitOrAssign<MsFlags> for otter_api_tests::imports::nix::sys::mman::MsFlags
impl BitOrAssign<MsFlags> for otter_api_tests::imports::nix::sys::mman::MsFlags
pub fn bitor_assign(&mut self, other: MsFlags)
pub fn bitor_assign(&mut self, other: MsFlags)
Adds the set of flags.
impl BitOrAssign<ProtFlags> for ProtFlags
impl BitOrAssign<ProtFlags> for ProtFlags
pub fn bitor_assign(&mut self, other: ProtFlags)
pub fn bitor_assign(&mut self, other: ProtFlags)
Adds the set of flags.
impl BitOrAssign<Persona> for Persona
impl BitOrAssign<Persona> for Persona
pub fn bitor_assign(&mut self, other: Persona)
pub fn bitor_assign(&mut self, other: Persona)
Adds the set of flags.
impl BitOrAssign<Options> for Options
impl BitOrAssign<Options> for Options
pub fn bitor_assign(&mut self, other: Options)
pub fn bitor_assign(&mut self, other: Options)
Adds the set of flags.
impl BitOrAssign<QuotaValidFlags> for QuotaValidFlags
impl BitOrAssign<QuotaValidFlags> for QuotaValidFlags
pub fn bitor_assign(&mut self, other: QuotaValidFlags)
pub fn bitor_assign(&mut self, other: QuotaValidFlags)
Adds the set of flags.
impl BitOrAssign<SaFlags> for SaFlags
impl BitOrAssign<SaFlags> for SaFlags
pub fn bitor_assign(&mut self, other: SaFlags)
pub fn bitor_assign(&mut self, other: SaFlags)
Adds the set of flags.
impl BitOrAssign<SfdFlags> for SfdFlags
impl BitOrAssign<SfdFlags> for SfdFlags
pub fn bitor_assign(&mut self, other: SfdFlags)
pub fn bitor_assign(&mut self, other: SfdFlags)
Adds the set of flags.
impl BitOrAssign<MsgFlags> for MsgFlags
impl BitOrAssign<MsgFlags> for MsgFlags
pub fn bitor_assign(&mut self, other: MsgFlags)
pub fn bitor_assign(&mut self, other: MsgFlags)
Adds the set of flags.
impl BitOrAssign<SockFlag> for SockFlag
impl BitOrAssign<SockFlag> for SockFlag
pub fn bitor_assign(&mut self, other: SockFlag)
pub fn bitor_assign(&mut self, other: SockFlag)
Adds the set of flags.
impl BitOrAssign<Mode> for Mode
impl BitOrAssign<Mode> for Mode
pub fn bitor_assign(&mut self, other: Mode)
pub fn bitor_assign(&mut self, other: Mode)
Adds the set of flags.
impl BitOrAssign<SFlag> for SFlag
impl BitOrAssign<SFlag> for SFlag
pub fn bitor_assign(&mut self, other: SFlag)
pub fn bitor_assign(&mut self, other: SFlag)
Adds the set of flags.
impl BitOrAssign<FsFlags> for FsFlags
impl BitOrAssign<FsFlags> for FsFlags
pub fn bitor_assign(&mut self, other: FsFlags)
pub fn bitor_assign(&mut self, other: FsFlags)
Adds the set of flags.
impl BitOrAssign<ControlFlags> for ControlFlags
impl BitOrAssign<ControlFlags> for ControlFlags
pub fn bitor_assign(&mut self, other: ControlFlags)
pub fn bitor_assign(&mut self, other: ControlFlags)
Adds the set of flags.
impl BitOrAssign<InputFlags> for InputFlags
impl BitOrAssign<InputFlags> for InputFlags
pub fn bitor_assign(&mut self, other: InputFlags)
pub fn bitor_assign(&mut self, other: InputFlags)
Adds the set of flags.
impl BitOrAssign<LocalFlags> for LocalFlags
impl BitOrAssign<LocalFlags> for LocalFlags
pub fn bitor_assign(&mut self, other: LocalFlags)
pub fn bitor_assign(&mut self, other: LocalFlags)
Adds the set of flags.
impl BitOrAssign<OutputFlags> for OutputFlags
impl BitOrAssign<OutputFlags> for OutputFlags
pub fn bitor_assign(&mut self, other: OutputFlags)
pub fn bitor_assign(&mut self, other: OutputFlags)
Adds the set of flags.
impl BitOrAssign<TimerFlags> for TimerFlags
impl BitOrAssign<TimerFlags> for TimerFlags
pub fn bitor_assign(&mut self, other: TimerFlags)
pub fn bitor_assign(&mut self, other: TimerFlags)
Adds the set of flags.
impl BitOrAssign<TimerSetTimeFlags> for TimerSetTimeFlags
impl BitOrAssign<TimerSetTimeFlags> for TimerSetTimeFlags
pub fn bitor_assign(&mut self, other: TimerSetTimeFlags)
pub fn bitor_assign(&mut self, other: TimerSetTimeFlags)
Adds the set of flags.
impl BitOrAssign<WaitPidFlag> for WaitPidFlag
impl BitOrAssign<WaitPidFlag> for WaitPidFlag
pub fn bitor_assign(&mut self, other: WaitPidFlag)
pub fn bitor_assign(&mut self, other: WaitPidFlag)
Adds the set of flags.