Enum wac_parser::ImportType
source · pub enum ImportType<'a> {
Package(PackagePath<'a>),
Func(FuncType<'a>),
Interface(InlineInterface<'a>),
Ident(Ident<'a>),
}Expand description
Represents an import type in the AST.
Variants§
Package(PackagePath<'a>)
The import type is from a package path.
Func(FuncType<'a>)
The import type is a function.
Interface(InlineInterface<'a>)
The import type is an interface.
Ident(Ident<'a>)
The import type is an identifier.
Trait Implementations§
source§impl<'a> Clone for ImportType<'a>
impl<'a> Clone for ImportType<'a>
source§fn clone(&self) -> ImportType<'a>
fn clone(&self) -> ImportType<'a>
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<'a> Debug for ImportType<'a>
impl<'a> Debug for ImportType<'a>
Auto Trait Implementations§
impl<'a> Freeze for ImportType<'a>
impl<'a> RefUnwindSafe for ImportType<'a>
impl<'a> Send for ImportType<'a>
impl<'a> Sync for ImportType<'a>
impl<'a> Unpin for ImportType<'a>
impl<'a> UnwindSafe for ImportType<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)