Struct NewCompartmentFlags
pub struct NewCompartmentFlags(/* private fields */);Implementations§
§impl NewCompartmentFlags
impl NewCompartmentFlags
pub const EXPORT_GATES: NewCompartmentFlags
pub const DEBUG: NewCompartmentFlags
§impl NewCompartmentFlags
impl NewCompartmentFlags
pub const fn empty() -> NewCompartmentFlags
pub const fn empty() -> NewCompartmentFlags
Get a flags value with all bits unset.
pub const fn all() -> NewCompartmentFlags
pub const fn all() -> NewCompartmentFlags
Get a flags value with all known bits set.
pub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
pub const fn from_bits(bits: u32) -> Option<NewCompartmentFlags>
pub const fn from_bits(bits: u32) -> Option<NewCompartmentFlags>
Convert from a bits value.
This method will return None if any unknown bits are set.
pub const fn from_bits_truncate(bits: u32) -> NewCompartmentFlags
pub const fn from_bits_truncate(bits: u32) -> NewCompartmentFlags
Convert from a bits value, unsetting any unknown bits.
pub const fn from_bits_retain(bits: u32) -> NewCompartmentFlags
pub const fn from_bits_retain(bits: u32) -> NewCompartmentFlags
Convert from a bits value exactly.
pub fn from_name(name: &str) -> Option<NewCompartmentFlags>
pub fn from_name(name: &str) -> Option<NewCompartmentFlags>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
pub const fn intersects(&self, other: NewCompartmentFlags) -> bool
pub const fn intersects(&self, other: NewCompartmentFlags) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
pub const fn contains(&self, other: NewCompartmentFlags) -> bool
pub const fn contains(&self, other: NewCompartmentFlags) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
pub fn insert(&mut self, other: NewCompartmentFlags)
pub fn insert(&mut self, other: NewCompartmentFlags)
The bitwise or (|) of the bits in two flags values.
pub fn remove(&mut self, other: NewCompartmentFlags)
pub fn remove(&mut self, other: NewCompartmentFlags)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
pub fn toggle(&mut self, other: NewCompartmentFlags)
pub fn toggle(&mut self, other: NewCompartmentFlags)
The bitwise exclusive-or (^) of the bits in two flags values.
pub fn set(&mut self, other: NewCompartmentFlags, value: bool)
pub fn set(&mut self, other: NewCompartmentFlags, value: bool)
Call insert when value is true or remove when value is false.
pub const fn intersection(
self,
other: NewCompartmentFlags,
) -> NewCompartmentFlags
pub const fn intersection( self, other: NewCompartmentFlags, ) -> NewCompartmentFlags
The bitwise and (&) of the bits in two flags values.
pub const fn union(self, other: NewCompartmentFlags) -> NewCompartmentFlags
pub const fn union(self, other: NewCompartmentFlags) -> NewCompartmentFlags
The bitwise or (|) of the bits in two flags values.
pub const fn difference(self, other: NewCompartmentFlags) -> NewCompartmentFlags
pub const fn difference(self, other: NewCompartmentFlags) -> NewCompartmentFlags
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
pub const fn symmetric_difference(
self,
other: NewCompartmentFlags,
) -> NewCompartmentFlags
pub const fn symmetric_difference( self, other: NewCompartmentFlags, ) -> NewCompartmentFlags
The bitwise exclusive-or (^) of the bits in two flags values.
pub const fn complement(self) -> NewCompartmentFlags
pub const fn complement(self) -> NewCompartmentFlags
The bitwise negation (!) of the bits in a flags value, truncating the result.
§impl NewCompartmentFlags
impl NewCompartmentFlags
pub const fn iter(&self) -> Iter<NewCompartmentFlags>
pub const fn iter(&self) -> Iter<NewCompartmentFlags>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
pub const fn iter_names(&self) -> IterNames<NewCompartmentFlags>
pub const fn iter_names(&self) -> IterNames<NewCompartmentFlags>
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
§impl Binary for NewCompartmentFlags
impl Binary for NewCompartmentFlags
§impl BitAnd for NewCompartmentFlags
impl BitAnd for NewCompartmentFlags
§fn bitand(self, other: NewCompartmentFlags) -> NewCompartmentFlags
fn bitand(self, other: NewCompartmentFlags) -> NewCompartmentFlags
The bitwise and (&) of the bits in two flags values.
§type Output = NewCompartmentFlags
type Output = NewCompartmentFlags
& operator.§impl BitAndAssign for NewCompartmentFlags
impl BitAndAssign for NewCompartmentFlags
§fn bitand_assign(&mut self, other: NewCompartmentFlags)
fn bitand_assign(&mut self, other: NewCompartmentFlags)
The bitwise and (&) of the bits in two flags values.
§impl BitOr for NewCompartmentFlags
impl BitOr for NewCompartmentFlags
§fn bitor(self, other: NewCompartmentFlags) -> NewCompartmentFlags
fn bitor(self, other: NewCompartmentFlags) -> NewCompartmentFlags
The bitwise or (|) of the bits in two flags values.
§type Output = NewCompartmentFlags
type Output = NewCompartmentFlags
| operator.§impl BitOrAssign for NewCompartmentFlags
impl BitOrAssign for NewCompartmentFlags
§fn bitor_assign(&mut self, other: NewCompartmentFlags)
fn bitor_assign(&mut self, other: NewCompartmentFlags)
The bitwise or (|) of the bits in two flags values.
§impl BitXor for NewCompartmentFlags
impl BitXor for NewCompartmentFlags
§fn bitxor(self, other: NewCompartmentFlags) -> NewCompartmentFlags
fn bitxor(self, other: NewCompartmentFlags) -> NewCompartmentFlags
The bitwise exclusive-or (^) of the bits in two flags values.
§type Output = NewCompartmentFlags
type Output = NewCompartmentFlags
^ operator.§impl BitXorAssign for NewCompartmentFlags
impl BitXorAssign for NewCompartmentFlags
§fn bitxor_assign(&mut self, other: NewCompartmentFlags)
fn bitxor_assign(&mut self, other: NewCompartmentFlags)
The bitwise exclusive-or (^) of the bits in two flags values.
§impl Clone for NewCompartmentFlags
impl Clone for NewCompartmentFlags
§fn clone(&self) -> NewCompartmentFlags
fn clone(&self) -> NewCompartmentFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for NewCompartmentFlags
impl Debug for NewCompartmentFlags
§impl Extend<NewCompartmentFlags> for NewCompartmentFlags
impl Extend<NewCompartmentFlags> for NewCompartmentFlags
§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = NewCompartmentFlags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = NewCompartmentFlags>,
The bitwise or (|) of the bits in each flags value.
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)§impl Flags for NewCompartmentFlags
impl Flags for NewCompartmentFlags
§const FLAGS: &'static [Flag<NewCompartmentFlags>]
const FLAGS: &'static [Flag<NewCompartmentFlags>]
§fn from_bits_retain(bits: u32) -> NewCompartmentFlags
fn from_bits_retain(bits: u32) -> NewCompartmentFlags
§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in two flags values.§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!). Read more§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in two flags values.§fn set(&mut self, other: Self, value: bool)where
Self: Sized,
fn set(&mut self, other: Self, value: bool)where
Self: Sized,
Flags::insert] when value is true or [Flags::remove] when value is false.§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in two flags values.§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!). Read more§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in two flags values.§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in a flags value, truncating the result.§impl FromIterator<NewCompartmentFlags> for NewCompartmentFlags
impl FromIterator<NewCompartmentFlags> for NewCompartmentFlags
§fn from_iter<T>(iterator: T) -> NewCompartmentFlagswhere
T: IntoIterator<Item = NewCompartmentFlags>,
fn from_iter<T>(iterator: T) -> NewCompartmentFlagswhere
T: IntoIterator<Item = NewCompartmentFlags>,
The bitwise or (|) of the bits in each flags value.
§impl IntoIterator for NewCompartmentFlags
impl IntoIterator for NewCompartmentFlags
§type Item = NewCompartmentFlags
type Item = NewCompartmentFlags
§type IntoIter = Iter<NewCompartmentFlags>
type IntoIter = Iter<NewCompartmentFlags>
§fn into_iter(self) -> <NewCompartmentFlags as IntoIterator>::IntoIter
fn into_iter(self) -> <NewCompartmentFlags as IntoIterator>::IntoIter
§impl LowerHex for NewCompartmentFlags
impl LowerHex for NewCompartmentFlags
§impl Not for NewCompartmentFlags
impl Not for NewCompartmentFlags
§fn not(self) -> NewCompartmentFlags
fn not(self) -> NewCompartmentFlags
The bitwise negation (!) of the bits in a flags value, truncating the result.
§type Output = NewCompartmentFlags
type Output = NewCompartmentFlags
! operator.§impl Octal for NewCompartmentFlags
impl Octal for NewCompartmentFlags
§impl Sub for NewCompartmentFlags
impl Sub for NewCompartmentFlags
§fn sub(self, other: NewCompartmentFlags) -> NewCompartmentFlags
fn sub(self, other: NewCompartmentFlags) -> NewCompartmentFlags
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
§type Output = NewCompartmentFlags
type Output = NewCompartmentFlags
- operator.§impl SubAssign for NewCompartmentFlags
impl SubAssign for NewCompartmentFlags
§fn sub_assign(&mut self, other: NewCompartmentFlags)
fn sub_assign(&mut self, other: NewCompartmentFlags)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
§impl UpperHex for NewCompartmentFlags
impl UpperHex for NewCompartmentFlags
impl Copy for NewCompartmentFlags
Auto Trait Implementations§
impl Crossing for NewCompartmentFlags
impl Freeze for NewCompartmentFlags
impl RefUnwindSafe for NewCompartmentFlags
impl Send for NewCompartmentFlags
impl StoreCopy for NewCompartmentFlags
impl Sync for NewCompartmentFlags
impl Unpin for NewCompartmentFlags
impl UnwindSafe for NewCompartmentFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more