pub struct EntityDecl {
pub id: NodeId,
pub span: Span,
pub name: Spanned<Name>,
pub decls: Vec<DeclItem>,
pub stmts: Option<Vec<Stmt>>,
}
Expand description
An entity declaration.
Fields§
§id: NodeId
§span: Span
§name: Spanned<Name>
§decls: Vec<DeclItem>
§stmts: Option<Vec<Stmt>>
Trait Implementations§
Source§impl Clone for EntityDecl
impl Clone for EntityDecl
Source§fn clone(&self) -> EntityDecl
fn clone(&self) -> EntityDecl
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 Debug for EntityDecl
impl Debug for EntityDecl
Source§impl PartialEq for EntityDecl
impl PartialEq for EntityDecl
impl Eq for EntityDecl
impl StructuralPartialEq for EntityDecl
Auto Trait Implementations§
impl Freeze for EntityDecl
impl RefUnwindSafe for EntityDecl
impl Send for EntityDecl
impl Sync for EntityDecl
impl Unpin for EntityDecl
impl UnwindSafe for EntityDecl
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