pub struct GlobalVariable<'a> {
pub name: Ident<'a>,
pub template_list: Vec<Handle<Expression<'a>>>,
pub binding: Option<ResourceBinding<'a>>,
pub ty: Option<TemplateElaboratedIdent<'a>>,
pub init: Option<Handle<Expression<'a>>>,
pub doc_comments: Vec<&'a str>,
}Fields§
§name: Ident<'a>§template_list: Vec<Handle<Expression<'a>>>The template list parameters for the var, giving the variable’s
address space and access mode, if present.
binding: Option<ResourceBinding<'a>>The @group and @binding attributes, if present.
ty: Option<TemplateElaboratedIdent<'a>>§init: Option<Handle<Expression<'a>>>§doc_comments: Vec<&'a str>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