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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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