pub struct VarDef {
pub name: Option<String>,
pub value: NodeRef,
pub ty: Type,
}Expand description
VarNode — a var<private> that caches its value’s first use.
Fields§
§name: Option<String>toVar( 'name' ); None numbers it nodeVarN. A String because a
sub-build layer prefixes the name with its own (NORMAL_normalView) —
see docs/nodes.md §7.
value: NodeRefThe node whose value is cached.
ty: TypeThe variable’s WGSL type.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VarDef
impl !Send for VarDef
impl !Sync for VarDef
impl !UnwindSafe for VarDef
impl Freeze for VarDef
impl Unpin for VarDef
impl UnsafeUnpin for VarDef
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