pub struct EntityDeclaration {
pub modifiers: Vec<Modifier>,
pub kind: EntityDeclarationKind,
pub name: Option<String>,
pub type_params: Vec<BoundedTypeParam>,
pub primary_constructor: Option<PrimaryConstructorDeclaration>,
pub extends: Vec<Type>,
pub bounds: Vec<TypeBound>,
pub body: Option<Block>,
}
Fields§
§modifiers: Vec<Modifier>
§kind: EntityDeclarationKind
§name: Option<String>
§type_params: Vec<BoundedTypeParam>
§primary_constructor: Option<PrimaryConstructorDeclaration>
§extends: Vec<Type>
§bounds: Vec<TypeBound>
§body: Option<Block>
Trait Implementations§
Source§impl Clone for EntityDeclaration
impl Clone for EntityDeclaration
Source§fn clone(&self) -> EntityDeclaration
fn clone(&self) -> EntityDeclaration
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 EntityDeclaration
impl Debug for EntityDeclaration
Source§impl PartialEq for EntityDeclaration
impl PartialEq for EntityDeclaration
impl StructuralPartialEq for EntityDeclaration
Auto Trait Implementations§
impl Freeze for EntityDeclaration
impl RefUnwindSafe for EntityDeclaration
impl Send for EntityDeclaration
impl Sync for EntityDeclaration
impl Unpin for EntityDeclaration
impl UnwindSafe for EntityDeclaration
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