pub enum ExternType<'a> {
Ident(Ident<'a>),
Func(FuncType<'a>),
Interface(InlineInterface<'a>),
}
Expand description
Represents the external type of a world item in the AST.
Variants§
Ident(Ident<'a>)
The type is by identifier.
Func(FuncType<'a>)
The type is an inline function type.
Interface(InlineInterface<'a>)
The type is an inline interface.
Trait Implementations§
Source§impl<'a> Clone for ExternType<'a>
impl<'a> Clone for ExternType<'a>
Source§fn clone(&self) -> ExternType<'a>
fn clone(&self) -> ExternType<'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 ExternType<'a>
impl<'a> Debug for ExternType<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExternType<'a>
impl<'a> RefUnwindSafe for ExternType<'a>
impl<'a> Send for ExternType<'a>
impl<'a> Sync for ExternType<'a>
impl<'a> Unpin for ExternType<'a>
impl<'a> UnwindSafe for ExternType<'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