pub enum ImportKind {
    Function(ImportFunction),
    Static(ImportStatic),
    String(ImportString),
    Type(ImportType),
    Enum(StringEnum),
}Expand description
The type of item being imported
Variants§
Function(ImportFunction)
Importing a function
Static(ImportStatic)
Importing a static value
String(ImportString)
Importing a static string
Type(ImportType)
Importing a type/class
Enum(StringEnum)
Importing a JS enum
Implementations§
Source§impl ImportKind
 
impl ImportKind
Sourcepub fn fits_on_impl(&self) -> bool
 
pub fn fits_on_impl(&self) -> bool
Whether this type can be inside an impl block.
Trait Implementations§
Source§impl Clone for ImportKind
 
impl Clone for ImportKind
Source§fn clone(&self) -> ImportKind
 
fn clone(&self) -> ImportKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl TryToTokens for ImportKind
 
impl TryToTokens for ImportKind
Source§fn try_to_tokens(&self, tokens: &mut TokenStream) -> Result<(), Diagnostic>
 
fn try_to_tokens(&self, tokens: &mut TokenStream) -> Result<(), Diagnostic>
Attempt to convert a 
Self into tokens and add it to the TokenStreamSource§fn try_to_token_stream(&self) -> Result<TokenStream, Diagnostic>
 
fn try_to_token_stream(&self) -> Result<TokenStream, Diagnostic>
Attempt to convert a 
Self into a new TokenStreamAuto Trait Implementations§
impl Freeze for ImportKind
impl RefUnwindSafe for ImportKind
impl !Send for ImportKind
impl !Sync for ImportKind
impl Unpin for ImportKind
impl UnwindSafe for ImportKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more