Struct parity_wasm::elements::ImportSection [−][src]
pub struct ImportSection(_);
Section of the imports definition.
Implementations
impl ImportSection[src]
impl ImportSection[src]pub fn with_entries(entries: Vec<ImportEntry>) -> Self[src]
New import section with provided types.
pub fn entries(&self) -> &[ImportEntry][src]
List of import entries.
pub fn entries_mut(&mut self) -> &mut Vec<ImportEntry>[src]
List of import entries (mutable).
pub fn functions(&self) -> usize[src]
Returns number of functions.
pub fn globals(&self) -> usize[src]
Returns number of globals
Trait Implementations
impl Clone for ImportSection[src]
impl Clone for ImportSection[src]fn clone(&self) -> ImportSection[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for ImportSection[src]
impl Default for ImportSection[src]fn default() -> ImportSection[src]
impl Deserialize for ImportSection[src]
impl Deserialize for ImportSection[src]impl PartialEq<ImportSection> for ImportSection[src]
impl PartialEq<ImportSection> for ImportSection[src]fn eq(&self, other: &ImportSection) -> bool[src]
fn ne(&self, other: &ImportSection) -> bool[src]
impl Serialize for ImportSection[src]
impl Serialize for ImportSection[src]