Enum wasm_bindgen_backend::ast::ImportKind
source · pub enum ImportKind {
Function(ImportFunction),
Static(ImportStatic),
Type(ImportType),
Enum(ImportEnum),
}
Variants
Function(ImportFunction)
Static(ImportStatic)
Type(ImportType)
Enum(ImportEnum)
Implementations
sourceimpl 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
sourceimpl Clone for ImportKind
impl Clone for ImportKind
sourcefn clone(&self) -> ImportKind
fn clone(&self) -> ImportKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl ImportedTypes for ImportKind
impl ImportedTypes for ImportKind
fn imported_types<F>(&self, f: &mut F)where
F: FnMut(&Ident, ImportedTypeKind),
sourceimpl TryToTokens for ImportKind
impl TryToTokens for ImportKind
fn try_to_tokens(&self, tokens: &mut TokenStream) -> Result<(), Diagnostic>
fn try_to_token_stream(&self) -> Result<TokenStream, Diagnostic>
Auto Trait Implementations
impl RefUnwindSafe for ImportKind
impl !Send for ImportKind
impl !Sync for ImportKind
impl Unpin for ImportKind
impl UnwindSafe for ImportKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more