Struct naga::front::wgsl::parse::directive::enable_extension::EnableExtensions
source · pub struct EnableExtensions {}
Expand description
Tracks the status of every enable-extension known to Naga.
Implementations§
source§impl EnableExtensions
impl EnableExtensions
pub(crate) const fn empty() -> Self
sourcepub(crate) fn add(&mut self, ext: ImplementedEnableExtension)
pub(crate) fn add(&mut self, ext: ImplementedEnableExtension)
Add an enable-extension to the set requested by a module.
sourcepub(crate) const fn contains(&self, ext: ImplementedEnableExtension) -> bool
pub(crate) const fn contains(&self, ext: ImplementedEnableExtension) -> bool
Query whether an enable-extension tracked here has been requested.
Trait Implementations§
source§impl Clone for EnableExtensions
impl Clone for EnableExtensions
source§fn clone(&self) -> EnableExtensions
fn clone(&self) -> EnableExtensions
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 EnableExtensions
impl Debug for EnableExtensions
source§impl Default for EnableExtensions
impl Default for EnableExtensions
source§impl PartialEq for EnableExtensions
impl PartialEq for EnableExtensions
impl Eq for EnableExtensions
impl StructuralPartialEq for EnableExtensions
Auto Trait Implementations§
impl Freeze for EnableExtensions
impl RefUnwindSafe for EnableExtensions
impl Send for EnableExtensions
impl Sync for EnableExtensions
impl Unpin for EnableExtensions
impl UnwindSafe for EnableExtensions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.