pub struct WGSLConstant {
pub name: String,
pub ty: Option<WGSLType>,
pub value: String,
}Expand description
A module-scope compile-time constant (const).
Fields§
§name: StringConstant name.
ty: Option<WGSLType>Optional explicit type.
value: StringValue expression.
Implementations§
Trait Implementations§
Source§impl Clone for WGSLConstant
impl Clone for WGSLConstant
Source§fn clone(&self) -> WGSLConstant
fn clone(&self) -> WGSLConstant
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 WGSLConstant
impl RefUnwindSafe for WGSLConstant
impl Send for WGSLConstant
impl Sync for WGSLConstant
impl Unpin for WGSLConstant
impl UnsafeUnpin for WGSLConstant
impl UnwindSafe for WGSLConstant
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