Struct naga::GlobalVariable
source · [−]pub struct GlobalVariable {
pub name: Option<String>,
pub space: AddressSpace,
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.
space: AddressSpace
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
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for GlobalVariable
impl<'arbitrary> Arbitrary<'arbitrary> for GlobalVariable
sourcefn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the given unstructured data. Read more
sourcefn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the entirety of the given
unstructured data. Read more
sourceimpl Clone for GlobalVariable
impl Clone for GlobalVariable
sourcefn clone(&self) -> GlobalVariable
fn clone(&self) -> GlobalVariable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GlobalVariable
impl Debug for GlobalVariable
sourceimpl<'de> Deserialize<'de> for GlobalVariable
impl<'de> Deserialize<'de> for GlobalVariable
sourcefn 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
sourceimpl PartialEq<GlobalVariable> for GlobalVariable
impl PartialEq<GlobalVariable> for GlobalVariable
sourcefn eq(&self, other: &GlobalVariable) -> bool
fn eq(&self, other: &GlobalVariable) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GlobalVariable) -> bool
fn ne(&self, other: &GlobalVariable) -> bool
This method tests for !=
.
sourceimpl Serialize for GlobalVariable
impl Serialize for GlobalVariable
impl StructuralPartialEq for GlobalVariable
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more