pub struct GlobalVariable<'a> {
pub name: Ident<'a>,
pub space: AddressSpace,
pub binding: Option<ResourceBinding<'a>>,
pub ty: Option<Handle<Type<'a>>>,
pub init: Option<Handle<Expression<'a>>>,
}
Fields§
§name: Ident<'a>
§space: AddressSpace
§binding: Option<ResourceBinding<'a>>
§ty: Option<Handle<Type<'a>>>
§init: Option<Handle<Expression<'a>>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GlobalVariable<'a>
impl<'a> RefUnwindSafe for GlobalVariable<'a>
impl<'a> Send for GlobalVariable<'a>
impl<'a> Sync for GlobalVariable<'a>
impl<'a> Unpin for GlobalVariable<'a>
impl<'a> UnwindSafe for GlobalVariable<'a>
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