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