pub enum InterfaceItem<'a> {
Use(Box<Use<'a>>),
Type(ItemTypeDecl<'a>),
Export(InterfaceExport<'a>),
}
Expand description
Represents an interface item in the AST.
Variants§
Use(Box<Use<'a>>)
The item is a use of other types.
Type(ItemTypeDecl<'a>)
The item is a type declaration.
Export(InterfaceExport<'a>)
The item is an interface export.
Trait Implementations§
Source§impl<'a> Clone for InterfaceItem<'a>
impl<'a> Clone for InterfaceItem<'a>
Source§fn clone(&self) -> InterfaceItem<'a>
fn clone(&self) -> InterfaceItem<'a>
Returns a duplicate 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 InterfaceItem<'a>
impl<'a> Debug for InterfaceItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for InterfaceItem<'a>
impl<'a> RefUnwindSafe for InterfaceItem<'a>
impl<'a> Send for InterfaceItem<'a>
impl<'a> Sync for InterfaceItem<'a>
impl<'a> Unpin for InterfaceItem<'a>
impl<'a> UnwindSafe for InterfaceItem<'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