pub struct WGSLStruct {
pub name: String,
pub fields: Vec<WGSLStructField>,
}Expand description
A WGSL struct type definition.
Fields§
§name: StringStruct name.
fields: Vec<WGSLStructField>Fields in declaration order.
Implementations§
Trait Implementations§
Source§impl Clone for WGSLStruct
impl Clone for WGSLStruct
Source§fn clone(&self) -> WGSLStruct
fn clone(&self) -> WGSLStruct
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 moreAuto Trait Implementations§
impl Freeze for WGSLStruct
impl RefUnwindSafe for WGSLStruct
impl Send for WGSLStruct
impl Sync for WGSLStruct
impl Unpin for WGSLStruct
impl UnsafeUnpin for WGSLStruct
impl UnwindSafe for WGSLStruct
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