pub struct Global {
pub ty: GlobalType,
pub init_expr: Span,
}Fields§
§ty: GlobalType§init_expr: SpanImplementations§
Source§impl Global
impl Global
pub fn decode_and_validate( wasm: &mut WasmDecoder<'_>, imported_global_types: &[GlobalType], validation_context_refs: &mut BTreeSet<FuncIdx>, c_funcs: &IdxVec<FuncIdx, TypeIdx>, ) -> Result<Self, ValidationError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Global
impl RefUnwindSafe for Global
impl Send for Global
impl Sync for Global
impl Unpin for Global
impl UnwindSafe for Global
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