[][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]

impl Copy for Target[src]

impl Debug for Target[src]

impl Default for Target[src]

impl Display for Target[src]

impl FromStr for Target[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

impl RefUnwindSafe for Target

impl Send for Target

impl Sync for Target

impl Unpin for Target

impl UnwindSafe for Target

Blanket Implementations

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

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

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

impl<T> Erased for T

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<'a, T> TryFrom<&'a str> for T where
    T: FromStr

type Err = <T as FromStr>::Err

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

type Error = Infallible

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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