pub enum ImportKind {
    Function(ImportFunction),
    Static(ImportStatic),
    Type(ImportType),
    Enum(ImportEnum),
}
Expand description

The type of item being imported

Variants§

§

Function(ImportFunction)

Importing a function

§

Static(ImportStatic)

Importing a static value

§

Type(ImportType)

Importing a type/class

§

Enum(ImportEnum)

Importing a JS enum

Implementations§

Whether this type can be inside an impl block.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Attempt to convert a Self into tokens and add it to the TokenStream
Attempt to convert a Self into a new TokenStream

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.