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