[][src]Struct wit_writer::Imports

pub struct Imports<'a> { /* fields omitted */ }

Writer for the list of imports in an import subsection.

Methods

impl<'_> Imports<'_>[src]

pub fn add(&mut self, module: &str, name: &str, ty: u32)[src]

Adds a new import in this type section.

Trait Implementations

impl<'_> Drop for Imports<'_>[src]

Auto Trait Implementations

impl<'a> Send for Imports<'a>

impl<'a> Sync for Imports<'a>

impl<'a> Unpin for Imports<'a>

impl<'a> !UnwindSafe for Imports<'a>

impl<'a> RefUnwindSafe for Imports<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]