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, arena: &Objects) -> Pos
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entity
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