pub struct TH32CSFlags { /* private fields */ }Implementations§
Source§impl TH32CSFlags
impl TH32CSFlags
pub const INHERIT: TH32CSFlags
pub const SNAPALL: TH32CSFlags
pub const SNAPHEAPLIST: TH32CSFlags
pub const SNAPMODULE: TH32CSFlags
pub const SNAPMODULE32: TH32CSFlags
pub const SNAPPROCESS: TH32CSFlags
pub const SNAPTHREAD: TH32CSFlags
Sourcepub const fn empty() -> TH32CSFlags
pub const fn empty() -> TH32CSFlags
Returns an empty set of flags
Sourcepub const fn all() -> TH32CSFlags
pub const fn all() -> TH32CSFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<TH32CSFlags>
pub fn from_bits(bits: u32) -> Option<TH32CSFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> TH32CSFlags
pub const fn from_bits_truncate(bits: u32) -> TH32CSFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> TH32CSFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> TH32CSFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: TH32CSFlags) -> bool
pub const fn intersects(&self, other: TH32CSFlags) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: TH32CSFlags) -> bool
pub const fn contains(&self, other: TH32CSFlags) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: TH32CSFlags)
pub fn insert(&mut self, other: TH32CSFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: TH32CSFlags)
pub fn remove(&mut self, other: TH32CSFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: TH32CSFlags)
pub fn toggle(&mut self, other: TH32CSFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: TH32CSFlags, value: bool)
pub fn set(&mut self, other: TH32CSFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for TH32CSFlags
impl Binary for TH32CSFlags
Source§impl BitAnd for TH32CSFlags
impl BitAnd for TH32CSFlags
Source§fn bitand(self, other: TH32CSFlags) -> TH32CSFlags
fn bitand(self, other: TH32CSFlags) -> TH32CSFlags
Returns the intersection between the two sets of flags.
Source§type Output = TH32CSFlags
type Output = TH32CSFlags
& operator.Source§impl BitAndAssign for TH32CSFlags
impl BitAndAssign for TH32CSFlags
Source§fn bitand_assign(&mut self, other: TH32CSFlags)
fn bitand_assign(&mut self, other: TH32CSFlags)
Disables all flags disabled in the set.
Source§impl BitOr for TH32CSFlags
impl BitOr for TH32CSFlags
Source§fn bitor(self, other: TH32CSFlags) -> TH32CSFlags
fn bitor(self, other: TH32CSFlags) -> TH32CSFlags
Returns the union of the two sets of flags.
Source§type Output = TH32CSFlags
type Output = TH32CSFlags
| operator.Source§impl BitOrAssign for TH32CSFlags
impl BitOrAssign for TH32CSFlags
Source§fn bitor_assign(&mut self, other: TH32CSFlags)
fn bitor_assign(&mut self, other: TH32CSFlags)
Adds the set of flags.
Source§impl BitXor for TH32CSFlags
impl BitXor for TH32CSFlags
Source§fn bitxor(self, other: TH32CSFlags) -> TH32CSFlags
fn bitxor(self, other: TH32CSFlags) -> TH32CSFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = TH32CSFlags
type Output = TH32CSFlags
^ operator.Source§impl BitXorAssign for TH32CSFlags
impl BitXorAssign for TH32CSFlags
Source§fn bitxor_assign(&mut self, other: TH32CSFlags)
fn bitxor_assign(&mut self, other: TH32CSFlags)
Toggles the set of flags.
Source§impl Clone for TH32CSFlags
impl Clone for TH32CSFlags
Source§fn clone(&self) -> TH32CSFlags
fn clone(&self) -> TH32CSFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TH32CSFlags
impl Debug for TH32CSFlags
Source§impl Extend<TH32CSFlags> for TH32CSFlags
impl Extend<TH32CSFlags> for TH32CSFlags
Source§fn extend<T: IntoIterator<Item = TH32CSFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = TH32CSFlags>>(&mut self, iterator: T)
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)Source§impl FromIterator<TH32CSFlags> for TH32CSFlags
impl FromIterator<TH32CSFlags> for TH32CSFlags
Source§fn from_iter<T: IntoIterator<Item = TH32CSFlags>>(iterator: T) -> TH32CSFlags
fn from_iter<T: IntoIterator<Item = TH32CSFlags>>(iterator: T) -> TH32CSFlags
Source§impl Hash for TH32CSFlags
impl Hash for TH32CSFlags
Source§impl LowerHex for TH32CSFlags
impl LowerHex for TH32CSFlags
Source§impl Not for TH32CSFlags
impl Not for TH32CSFlags
Source§fn not(self) -> TH32CSFlags
fn not(self) -> TH32CSFlags
Returns the complement of this set of flags.
Source§type Output = TH32CSFlags
type Output = TH32CSFlags
! operator.Source§impl Octal for TH32CSFlags
impl Octal for TH32CSFlags
Source§impl Ord for TH32CSFlags
impl Ord for TH32CSFlags
Source§fn cmp(&self, other: &TH32CSFlags) -> Ordering
fn cmp(&self, other: &TH32CSFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TH32CSFlags
impl PartialEq for TH32CSFlags
Source§impl PartialOrd for TH32CSFlags
impl PartialOrd for TH32CSFlags
Source§impl Sub for TH32CSFlags
impl Sub for TH32CSFlags
Source§fn sub(self, other: TH32CSFlags) -> TH32CSFlags
fn sub(self, other: TH32CSFlags) -> TH32CSFlags
Returns the set difference of the two sets of flags.
Source§type Output = TH32CSFlags
type Output = TH32CSFlags
- operator.Source§impl SubAssign for TH32CSFlags
impl SubAssign for TH32CSFlags
Source§fn sub_assign(&mut self, other: TH32CSFlags)
fn sub_assign(&mut self, other: TH32CSFlags)
Disables all flags enabled in the set.