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