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