waside 0.1.0

An AST for WebAssembly that supports decoding, encoding, and printing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::ast::const_expr::ConstExpr;
use crate::Span;

/// A table entry.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Table {
    /// Source span.
    pub span: Span,
    /// The table type (element type and limits).
    pub ty: wasmparser::TableType,
    /// Optional initializer expression (for tables with an inline init).
    pub init: Option<ConstExpr>,
}