pub struct Entity {
pub kind: EntityKind,
pub name: String,
pub decl: DeclObj,
pub data: EntityData,
}
Fields§
§kind: EntityKind
§name: String
§decl: DeclObj
§data: EntityData
Implementations§
source§impl Entity
impl Entity
pub fn new( kind: EntityKind, name: String, decl: DeclObj, data: EntityData ) -> Entity
pub fn with_no_data(kind: EntityKind, name: String, decl: DeclObj) -> Entity
pub fn pos(&self, objs: &AstObjects) -> Pos
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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