Struct naga::GlobalVariable [−][src]
pub struct GlobalVariable {
pub name: Option<String>,
pub class: StorageClass,
pub binding: Option<ResourceBinding>,
pub ty: Handle<Type>,
pub init: Option<Handle<Constant>>,
}
Expand description
Variable defined at module level.
Fields
name: Option<String>
Name of the variable, if any.
class: StorageClass
How this variable is to be stored.
binding: Option<ResourceBinding>
For resources, defines the binding point.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GlobalVariable
impl Send for GlobalVariable
impl Sync for GlobalVariable
impl Unpin for GlobalVariable
impl UnwindSafe for GlobalVariable
Blanket Implementations
Mutably borrows from an owned value. Read more