Skip to main content

ToEntityId

Trait ToEntityId 

Source
pub trait ToEntityId:
    'static
    + Sync
    + Send {
    // Required method
    fn to_entity_id(&self) -> EntityId;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: ToString + Sync + Send + 'static + ?Sized> ToEntityId for T