Struct naga::LocalVariable [−][src]
pub struct LocalVariable {
pub name: Option<String>,
pub ty: Handle<Type>,
pub init: Option<Handle<Constant>>,
}
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<Constant>>
Initial value for this variable.
Trait Implementations
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 RefUnwindSafe for LocalVariable
impl Send for LocalVariable
impl Sync for LocalVariable
impl Unpin for LocalVariable
impl UnwindSafe for LocalVariable
Blanket Implementations
Mutably borrows from an owned value. Read more