[][src]Enum wasm_pack::command::build::Target

pub enum Target {
    Bundler,
    Web,
    Nodejs,
    NoModules,
}

What sort of output we're going to be generating and flags we're invoking wasm-bindgen with.

Variants

Bundler

Default output mode or --target bundler, indicates output will be used with a bundle in a later step.

Web

Correspond to --target web where the output is natively usable as an ES module in a browser and the wasm is manually instantiated.

Nodejs

Correspond to --target nodejs where the output is natively usable as a Node.js module loaded with require.

NoModules

Correspond to --target no-modules where the output is natively usable in a browser but pollutes the global namespace and must be manually instantiated.

Trait Implementations

impl Clone for Target[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Target[src]

impl Default for Target[src]

impl Debug for Target[src]

impl FromStr for Target[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for Target

impl Sync for Target

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T