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