Struct gfx_hal::format::BufferFeature [−][src]
pub struct BufferFeature { /* fields omitted */ }
Buffer feature flags.
Implementations
impl BufferFeature
[src]
impl BufferFeature
[src]pub const UNIFORM_TEXEL: BufferFeature
[src]
Buffer view can be used as uniform texel buffer.
pub const STORAGE_TEXEL: BufferFeature
[src]
Buffer view can be used as storage texel buffer.
pub const STORAGE_TEXEL_ATOMIC: BufferFeature
[src]
Buffer view can be used as storage texel buffer (with atomics).
pub const VERTEX: BufferFeature
[src]
Image view can be used as vertex buffer.
pub const fn empty() -> BufferFeature
[src]
Returns an empty set of flags
pub const fn all() -> BufferFeature
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u32
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<BufferFeature>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> BufferFeature
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> BufferFeature
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: BufferFeature) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: BufferFeature) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: BufferFeature)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: BufferFeature)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: BufferFeature)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: BufferFeature, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl BitAnd<BufferFeature> for BufferFeature
[src]
impl BitAnd<BufferFeature> for BufferFeature
[src]type Output = BufferFeature
The resulting type after applying the &
operator.
fn bitand(self, other: BufferFeature) -> BufferFeature
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<BufferFeature> for BufferFeature
[src]
impl BitAndAssign<BufferFeature> for BufferFeature
[src]fn bitand_assign(&mut self, other: BufferFeature)
[src]
Disables all flags disabled in the set.
impl BitOr<BufferFeature> for BufferFeature
[src]
impl BitOr<BufferFeature> for BufferFeature
[src]type Output = BufferFeature
The resulting type after applying the |
operator.
fn bitor(self, other: BufferFeature) -> BufferFeature
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<BufferFeature> for BufferFeature
[src]
impl BitOrAssign<BufferFeature> for BufferFeature
[src]fn bitor_assign(&mut self, other: BufferFeature)
[src]
Adds the set of flags.
impl BitXor<BufferFeature> for BufferFeature
[src]
impl BitXor<BufferFeature> for BufferFeature
[src]type Output = BufferFeature
The resulting type after applying the ^
operator.
fn bitxor(self, other: BufferFeature) -> BufferFeature
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<BufferFeature> for BufferFeature
[src]
impl BitXorAssign<BufferFeature> for BufferFeature
[src]fn bitxor_assign(&mut self, other: BufferFeature)
[src]
Toggles the set of flags.
impl Clone for BufferFeature
[src]
impl Clone for BufferFeature
[src]fn clone(&self) -> BufferFeature
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BufferFeature
[src]
impl Copy for BufferFeature
[src]impl Default for BufferFeature
[src]
impl Default for BufferFeature
[src]fn default() -> BufferFeature
[src]
impl Eq for BufferFeature
[src]
impl Eq for BufferFeature
[src]impl Extend<BufferFeature> for BufferFeature
[src]
impl Extend<BufferFeature> for BufferFeature
[src]fn extend<T: IntoIterator<Item = BufferFeature>>(&mut self, iterator: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<BufferFeature> for BufferFeature
[src]
impl FromIterator<BufferFeature> for BufferFeature
[src]fn from_iter<T: IntoIterator<Item = BufferFeature>>(
iterator: T
) -> BufferFeature
[src]
iterator: T
) -> BufferFeature
impl Hash for BufferFeature
[src]
impl Hash for BufferFeature
[src]impl Not for BufferFeature
[src]
impl Not for BufferFeature
[src]type Output = BufferFeature
The resulting type after applying the !
operator.
fn not(self) -> BufferFeature
[src]
Returns the complement of this set of flags.
impl Ord for BufferFeature
[src]
impl Ord for BufferFeature
[src]impl PartialEq<BufferFeature> for BufferFeature
[src]
impl PartialEq<BufferFeature> for BufferFeature
[src]fn eq(&self, other: &BufferFeature) -> bool
[src]
fn ne(&self, other: &BufferFeature) -> bool
[src]
impl PartialOrd<BufferFeature> for BufferFeature
[src]
impl PartialOrd<BufferFeature> for BufferFeature
[src]fn partial_cmp(&self, other: &BufferFeature) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for BufferFeature
[src]
impl StructuralEq for BufferFeature
[src]impl StructuralPartialEq for BufferFeature
[src]
impl StructuralPartialEq for BufferFeature
[src]impl Sub<BufferFeature> for BufferFeature
[src]
impl Sub<BufferFeature> for BufferFeature
[src]type Output = BufferFeature
The resulting type after applying the -
operator.
fn sub(self, other: BufferFeature) -> BufferFeature
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<BufferFeature> for BufferFeature
[src]
impl SubAssign<BufferFeature> for BufferFeature
[src]fn sub_assign(&mut self, other: BufferFeature)
[src]
Disables all flags enabled in the set.
Auto Trait Implementations
impl RefUnwindSafe for BufferFeature
impl RefUnwindSafe for BufferFeature
impl Send for BufferFeature
impl Send for BufferFeature
impl Sync for BufferFeature
impl Sync for BufferFeature
impl Unpin for BufferFeature
impl Unpin for BufferFeature
impl UnwindSafe for BufferFeature
impl UnwindSafe for BufferFeature