Struct wgpu::naga::LocalVariable
source · pub struct LocalVariable {
pub name: Option<String>,
pub ty: Handle<Type>,
pub init: Option<Handle<Expression>>,
}
Expand description
Variable defined at function level.
Fields§
§name: Option<String>
Name of the variable, if any.
ty: Handle<Type>
The type of this variable.
init: Option<Handle<Expression>>
Initial value for this variable.
This handle refers to this LocalVariable
’s function’s
expressions
arena, but it is required to be an evaluated
constant expression.
Trait Implementations§
source§impl Clone for LocalVariable
impl Clone for LocalVariable
source§fn clone(&self) -> LocalVariable
fn clone(&self) -> LocalVariable
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 moreAuto Trait Implementations§
impl RefUnwindSafe for LocalVariable
impl Send for LocalVariable
impl Sync for LocalVariable
impl Unpin for LocalVariable
impl UnwindSafe for LocalVariable
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