#[non_exhaustive]pub struct InterfaceDecl {
pub name: Ident,
pub extends: Box<[Name]>,
pub body: ClassBody,
pub attributes: Box<[Attribute]>,
pub doc_comment: Option<Comment>,
}Expand description
An interface declaration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: IdentInterface name.
extends: Box<[Name]>Extended interfaces.
body: ClassBodyInterface body.
attributes: Box<[Attribute]>Attributes on the interface.
doc_comment: Option<Comment>Preceding doc comment.
Implementations§
Trait Implementations§
Source§impl Clone for InterfaceDecl
impl Clone for InterfaceDecl
Source§impl Debug for InterfaceDecl
impl Debug for InterfaceDecl
Auto Trait Implementations§
impl Freeze for InterfaceDecl
impl RefUnwindSafe for InterfaceDecl
impl Send for InterfaceDecl
impl Sync for InterfaceDecl
impl Unpin for InterfaceDecl
impl UnsafeUnpin for InterfaceDecl
impl UnwindSafe for InterfaceDecl
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