Struct 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 an expression in this LocalVariable
’s function’s
expressions
arena, but it is required to be an evaluated override
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 moresource§impl Debug for LocalVariable
impl Debug for LocalVariable
source§impl<'de> Deserialize<'de> for LocalVariable
impl<'de> Deserialize<'de> for LocalVariable
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LocalVariable
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