pub enum WgslTypeSerializeStrategy {
Encase,
Bytemuck,
}Expand description
Enum representing the possible serialization strategies for WGSL types.
This enum is used to specify how WGSL types should be serialized when converted to Rust types.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for WgslTypeSerializeStrategy
impl Clone for WgslTypeSerializeStrategy
source§fn clone(&self) -> WgslTypeSerializeStrategy
fn clone(&self) -> WgslTypeSerializeStrategy
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 WgslTypeSerializeStrategy
impl Debug for WgslTypeSerializeStrategy
source§impl Default for WgslTypeSerializeStrategy
impl Default for WgslTypeSerializeStrategy
source§fn default() -> WgslTypeSerializeStrategy
fn default() -> WgslTypeSerializeStrategy
Returns the “default value” for a type. Read more
source§impl PartialEq for WgslTypeSerializeStrategy
impl PartialEq for WgslTypeSerializeStrategy
source§fn eq(&self, other: &WgslTypeSerializeStrategy) -> bool
fn eq(&self, other: &WgslTypeSerializeStrategy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for WgslTypeSerializeStrategy
impl Eq for WgslTypeSerializeStrategy
impl StructuralPartialEq for WgslTypeSerializeStrategy
Auto Trait Implementations§
impl RefUnwindSafe for WgslTypeSerializeStrategy
impl Send for WgslTypeSerializeStrategy
impl Sync for WgslTypeSerializeStrategy
impl Unpin for WgslTypeSerializeStrategy
impl UnwindSafe for WgslTypeSerializeStrategy
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.