EntityRef

Trait EntityRef 

Source
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§

Source

fn entity_ref(&self) -> Id<E>

Gets the reference to the entity.

Implementations on Foreign Types§

Source§

impl<E: Entity> EntityRef<E> for &E

Source§

fn entity_ref(&self) -> Id<E>

Implementors§

Source§

impl<E: Entity> EntityRef<E> for &Id<E>

Source§

impl<E: Entity> EntityRef<E> for Id<E>