[−]Struct spirv_reflect::types::variable::ReflectDecorationFlags
Methods
impl ReflectDecorationFlags
pub const NONE: ReflectDecorationFlags
pub const BLOCK: ReflectDecorationFlags
pub const BUFFER_BLOCK: ReflectDecorationFlags
pub const ROW_MAJOR: ReflectDecorationFlags
pub const COLUMN_MAJOR: ReflectDecorationFlags
pub const BUILT_IN: ReflectDecorationFlags
pub const NO_PERSPECTIVE: ReflectDecorationFlags
pub const FLAT: ReflectDecorationFlags
pub const NON_WRITABLE: ReflectDecorationFlags
pub fn empty() -> ReflectDecorationFlags
Returns an empty set of flags.
pub fn all() -> ReflectDecorationFlags
Returns the set containing all flags.
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<ReflectDecorationFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> ReflectDecorationFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: ReflectDecorationFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: ReflectDecorationFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: ReflectDecorationFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: ReflectDecorationFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: ReflectDecorationFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: ReflectDecorationFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Extend<ReflectDecorationFlags> for ReflectDecorationFlags
fn extend<T: IntoIterator<Item = ReflectDecorationFlags>>(
&mut self,
iterator: T
)
&mut self,
iterator: T
)
impl PartialOrd<ReflectDecorationFlags> for ReflectDecorationFlags
fn partial_cmp(&self, other: &ReflectDecorationFlags) -> Option<Ordering>
fn lt(&self, other: &ReflectDecorationFlags) -> bool
fn le(&self, other: &ReflectDecorationFlags) -> bool
fn gt(&self, other: &ReflectDecorationFlags) -> bool
fn ge(&self, other: &ReflectDecorationFlags) -> bool
impl Copy for ReflectDecorationFlags
impl PartialEq<ReflectDecorationFlags> for ReflectDecorationFlags
fn eq(&self, other: &ReflectDecorationFlags) -> bool
fn ne(&self, other: &ReflectDecorationFlags) -> bool
impl Default for ReflectDecorationFlags
[src]
impl Clone for ReflectDecorationFlags
fn clone(&self) -> ReflectDecorationFlags
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for ReflectDecorationFlags
fn cmp(&self, other: &ReflectDecorationFlags) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Returns max if self is greater than max, and min if self is less than min. Otherwise this will return self. Panics if min > max. Read more
impl Eq for ReflectDecorationFlags
impl Debug for ReflectDecorationFlags
impl Sub<ReflectDecorationFlags> for ReflectDecorationFlags
type Output = ReflectDecorationFlags
The resulting type after applying the -
operator.
fn sub(self, other: ReflectDecorationFlags) -> ReflectDecorationFlags
Returns the set difference of the two sets of flags.
impl Hash for ReflectDecorationFlags
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl SubAssign<ReflectDecorationFlags> for ReflectDecorationFlags
fn sub_assign(&mut self, other: ReflectDecorationFlags)
Disables all flags enabled in the set.
impl Not for ReflectDecorationFlags
type Output = ReflectDecorationFlags
The resulting type after applying the !
operator.
fn not(self) -> ReflectDecorationFlags
Returns the complement of this set of flags.
impl BitAnd<ReflectDecorationFlags> for ReflectDecorationFlags
type Output = ReflectDecorationFlags
The resulting type after applying the &
operator.
fn bitand(self, other: ReflectDecorationFlags) -> ReflectDecorationFlags
Returns the intersection between the two sets of flags.
impl BitOr<ReflectDecorationFlags> for ReflectDecorationFlags
type Output = ReflectDecorationFlags
The resulting type after applying the |
operator.
fn bitor(self, other: ReflectDecorationFlags) -> ReflectDecorationFlags
Returns the union of the two sets of flags.
impl BitXor<ReflectDecorationFlags> for ReflectDecorationFlags
type Output = ReflectDecorationFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: ReflectDecorationFlags) -> ReflectDecorationFlags
Returns the left flags, but with all the right flags toggled.
impl BitAndAssign<ReflectDecorationFlags> for ReflectDecorationFlags
fn bitand_assign(&mut self, other: ReflectDecorationFlags)
Disables all flags disabled in the set.
impl BitOrAssign<ReflectDecorationFlags> for ReflectDecorationFlags
fn bitor_assign(&mut self, other: ReflectDecorationFlags)
Adds the set of flags.
impl BitXorAssign<ReflectDecorationFlags> for ReflectDecorationFlags
fn bitxor_assign(&mut self, other: ReflectDecorationFlags)
Toggles the set of flags.
impl FromIterator<ReflectDecorationFlags> for ReflectDecorationFlags
fn from_iter<T: IntoIterator<Item = ReflectDecorationFlags>>(
iterator: T
) -> ReflectDecorationFlags
iterator: T
) -> ReflectDecorationFlags
impl Octal for ReflectDecorationFlags
impl Binary for ReflectDecorationFlags
impl LowerHex for ReflectDecorationFlags
impl UpperHex for ReflectDecorationFlags
impl Serialize for ReflectDecorationFlags
[src]
Auto Trait Implementations
impl Send for ReflectDecorationFlags
impl Sync for ReflectDecorationFlags
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,