pub trait EntityRef<E: Entity> {
// Required method
fn entity_ref(&self) -> Id<E>;
}Expand description
Trait for types that serves as a reference (i.e. ID) to E.
Required Methods§
Sourcefn entity_ref(&self) -> Id<E>
fn entity_ref(&self) -> Id<E>
Gets the reference to the entity.