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