Enum wasm_nm::Symbol [] [src]

pub enum Symbol<'a> {
    Import {
        name: &'a str,
    },
    Export {
        name: &'a str,
        size: Option<usize>,
    },
    Private {
        index: u32,
        name: Option<Cow<'a, str>>,
        size: Option<usize>,
    },
}

A symbol from a wasm file.

Variants

An imported symbol.

Fields of Import

The symbol's name.

An exported symbol.

Fields of Export

The symbol's name.

The symbol's size, if available.

A private function that is not exported.

Fields of Private

The function table index for this private function.

The name from the name section, if that information exists.

The symbol's size, if available.

Trait Implementations

impl<'a> Clone for Symbol<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for Symbol<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Display for Symbol<'a>
[src]

[src]

Formats the value using the given formatter. Read more