pub enum PredeclaredType {
    AtomicCompareExchangeWeakResult(Scalar),
    ModfResult {
        size: Option<VectorSize>,
        scalar: Scalar,
    },
    FrexpResult {
        size: Option<VectorSize>,
        scalar: Scalar,
    },
}Expand description
Return types predeclared for the frexp, modf, and atomicCompareExchangeWeak built-in functions.
These cannot be spelled in WGSL source.
Stored in SpecialTypes::predeclared_types and created by Module::generate_predeclared_type.
Variants§
Implementations§
Source§impl PredeclaredType
 
impl PredeclaredType
pub fn struct_name(&self) -> String
Trait Implementations§
Source§impl Clone for PredeclaredType
 
impl Clone for PredeclaredType
Source§fn clone(&self) -> PredeclaredType
 
fn clone(&self) -> PredeclaredType
Returns a duplicate 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 PredeclaredType
 
impl Debug for PredeclaredType
Source§impl Hash for PredeclaredType
 
impl Hash for PredeclaredType
Source§impl PartialEq for PredeclaredType
 
impl PartialEq for PredeclaredType
impl Eq for PredeclaredType
impl StructuralPartialEq for PredeclaredType
Auto Trait Implementations§
impl Freeze for PredeclaredType
impl RefUnwindSafe for PredeclaredType
impl Send for PredeclaredType
impl Sync for PredeclaredType
impl Unpin for PredeclaredType
impl UnwindSafe for PredeclaredType
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§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.