pub struct InterfaceDecl<'a> {
pub docs: Vec<DocComment<'a>>,
pub id: Ident<'a>,
pub items: Vec<InterfaceItem<'a>>,
}
Expand description
Represents an interface declaration in the AST.
Fields§
§docs: Vec<DocComment<'a>>
The doc comments for the interface.
id: Ident<'a>
The identifier of the interface.
items: Vec<InterfaceItem<'a>>
The items of the interface.
Trait Implementations§
Source§impl<'a> Clone for InterfaceDecl<'a>
impl<'a> Clone for InterfaceDecl<'a>
Source§fn clone(&self) -> InterfaceDecl<'a>
fn clone(&self) -> InterfaceDecl<'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 InterfaceDecl<'a>
impl<'a> Debug for InterfaceDecl<'a>
Auto Trait Implementations§
impl<'a> Freeze for InterfaceDecl<'a>
impl<'a> RefUnwindSafe for InterfaceDecl<'a>
impl<'a> Send for InterfaceDecl<'a>
impl<'a> Sync for InterfaceDecl<'a>
impl<'a> Unpin for InterfaceDecl<'a>
impl<'a> UnwindSafe for InterfaceDecl<'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