pub struct InterfaceDecl {
pub doc_comment: Vec<Comment>,
pub modifiers: Vec<Modifier>,
pub interface_span: Span,
pub name: Ident,
pub type_params: Option<TypeParameters>,
pub extends_clause: Option<InterfaceExtendsClause>,
pub permits_clause: Option<PermitsClause>,
pub body: InterfaceBody,
}Expand description
An interface declaration.
Fields§
§doc_comment: Vec<Comment>§modifiers: Vec<Modifier>§interface_span: Span§name: Ident§type_params: Option<TypeParameters>§extends_clause: Option<InterfaceExtendsClause>§permits_clause: Option<PermitsClause>§body: InterfaceBodyImplementations§
Trait Implementations§
Source§impl Clone for InterfaceDecl
impl Clone for InterfaceDecl
Source§fn clone(&self) -> InterfaceDecl
fn clone(&self) -> InterfaceDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterfaceDecl
impl Debug for InterfaceDecl
Source§impl Hash for InterfaceDecl
impl Hash for InterfaceDecl
Source§impl PartialEq for InterfaceDecl
impl PartialEq for InterfaceDecl
Source§fn eq(&self, other: &InterfaceDecl) -> bool
fn eq(&self, other: &InterfaceDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for InterfaceDecl
impl StructuralPartialEq 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