#[repr(transparent)]pub struct Options(pub u32);
Expand description
Represents bitwise options for running processes with specific settings.
Tuple Fields§
§0: u32
Implementations§
Trait Implementations§
Source§impl BitOr for Options
impl BitOr for Options
Source§fn bitor(self, rhs: Self) -> Self::Output
fn bitor(self, rhs: Self) -> Self::Output
Combines two Options
instances using a bitwise OR operation.
§Parameters
rhs
- The right-hand sideOptions
instance.
§Returns
- A new
Options
instance that represents the combination of both options.
§Example
ⓘ
let combined = Options::Env | Options::NetOnly;
assert!(combined.contains(Options::Env));
assert!(combined.contains(Options::NetOnly));
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more