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
source§fn eq(&self, other: &EnableExtensions) -> bool
fn eq(&self, other: &EnableExtensions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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<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.