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
14
use crate::Span;

/// A custom section (other than the name section).
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct CustomSection {
    /// Source span.
    pub span: Span,
    /// The custom section name.
    pub name: String,
    /// The raw bytes of the custom section payload.
    pub data: Vec<u8>,
    /// Placement hint for WAT printing (e.g. "before first", "after type").
    pub placement: Option<String>,
}