#[repr(i32)]pub enum WGPUBufferBindingType {
BindingNotUsed = 0,
Undefined = 1,
Uniform = 2,
Storage = 3,
ReadOnlyStorage = 4,
}Variants§
Implementations§
Source§impl WGPUBufferBindingType
impl WGPUBufferBindingType
Sourcepub const fn is_binding_not_used(&self) -> bool
pub const fn is_binding_not_used(&self) -> bool
Returns true if the enum is WGPUBufferBindingType::BindingNotUsed otherwise false
Sourcepub const fn is_undefined(&self) -> bool
pub const fn is_undefined(&self) -> bool
Returns true if the enum is WGPUBufferBindingType::Undefined otherwise false
Sourcepub const fn is_uniform(&self) -> bool
pub const fn is_uniform(&self) -> bool
Returns true if the enum is WGPUBufferBindingType::Uniform otherwise false
Sourcepub const fn is_storage(&self) -> bool
pub const fn is_storage(&self) -> bool
Returns true if the enum is WGPUBufferBindingType::Storage otherwise false
Sourcepub const fn is_read_only_storage(&self) -> bool
pub const fn is_read_only_storage(&self) -> bool
Returns true if the enum is WGPUBufferBindingType::ReadOnlyStorage otherwise false
Trait Implementations§
Source§impl Clone for WGPUBufferBindingType
impl Clone for WGPUBufferBindingType
Source§fn clone(&self) -> WGPUBufferBindingType
fn clone(&self) -> WGPUBufferBindingType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WGPUBufferBindingType
impl Debug for WGPUBufferBindingType
Source§impl Display for WGPUBufferBindingType
impl Display for WGPUBufferBindingType
Source§impl<'_derivative_strum> From<&'_derivative_strum WGPUBufferBindingType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum WGPUBufferBindingType> for &'static str
Source§fn from(x: &'_derivative_strum WGPUBufferBindingType) -> &'static str
fn from(x: &'_derivative_strum WGPUBufferBindingType) -> &'static str
Converts to this type from the input type.
Source§impl From<WGPUBufferBindingType> for &'static str
impl From<WGPUBufferBindingType> for &'static str
Source§fn from(x: WGPUBufferBindingType) -> &'static str
fn from(x: WGPUBufferBindingType) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for WGPUBufferBindingType
impl FromStr for WGPUBufferBindingType
Source§impl Hash for WGPUBufferBindingType
impl Hash for WGPUBufferBindingType
Source§impl PartialEq for WGPUBufferBindingType
impl PartialEq for WGPUBufferBindingType
Source§impl TryFrom<&str> for WGPUBufferBindingType
impl TryFrom<&str> for WGPUBufferBindingType
impl Copy for WGPUBufferBindingType
impl Eq for WGPUBufferBindingType
impl StructuralPartialEq for WGPUBufferBindingType
Auto Trait Implementations§
impl Freeze for WGPUBufferBindingType
impl RefUnwindSafe for WGPUBufferBindingType
impl Send for WGPUBufferBindingType
impl Sync for WGPUBufferBindingType
impl Unpin for WGPUBufferBindingType
impl UnwindSafe for WGPUBufferBindingType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more