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