pub fn is_export(&self, context: &Context) -> bool {
        match &context.values[self.0] {
            ValuePayload::Global(g) => g.attributes.contains(GlobalAttribute::Export),
            _ => false,
        }
    }
/// Return true if the value is a global export.
///
/// # Examples
///
/// ```
/// # use yair::*;
/// # let mut context = Context::new();
/// # let module = context.create_module().with_name("module").build();
/// # let u32_ty = context.get_uint_type(32);
/// # let global = module.create_global(&mut context).with_attributes(GlobalAttributes::only(GlobalAttribute::Export)).with_name("global").with_type(u32_ty).build();
/// let is_export = global.is_export(&context);
/// # assert!(is_export);
/// ```
Return true if the value is a global export.
Return true if the value is a global export .
pub fn is_export(&self, context: &Context) -> bool {
        match &context.values[self.0] {
            ValuePayload::Global(g) => g.attributes.contains(GlobalAttribute::Export),
            _ => false,
        }
    }
pub fn is_export ( & self , context : & Context ) -> bool { match & context . values [ self . 0 ] { ValuePayload :: Global ( g ) => g . attributes . contains ( GlobalAttribute :: Export ) , _ => false , } }
Return true if the value is a global export.
Return true if the value is a global export .
&self
context
&Context
&self
context
&Context
examples
None
use yair::*;
None
let mut context = context::new();
None
let module = context.create_module().with_name("module").build();
None
let u32_ty = context.get_uint_type(32);
None
let global = module.create_global(&mut context).with_attributes(globalattributes::only(globalattribute::export)).with_name("global").with_type(u32_ty).build();
let is_export = global.is_export(&context).
let is_export = global . is_export ( &context ) .
assert!(is_export);
None