pub trait Entity<T>: Sealed {
type Weak: 'static;
// Required methods
fn entity_id(&self) -> EntityId;
fn downgrade(&self) -> Self::Weak;
fn upgrade_from(weak: &Self::Weak) -> Option<Self>
where Self: Sized;
}
pub trait Entity<T>: Sealed {
type Weak: 'static;
// Required methods
fn entity_id(&self) -> EntityId;
fn downgrade(&self) -> Self::Weak;
fn upgrade_from(weak: &Self::Weak) -> Option<Self>
where Self: Sized;
}