Skip to main content

EntityId

Trait EntityId 

Source
pub trait EntityId:
    Send
    + Sync
    + Clone
    + 'static {
    // Required methods
    fn as_str(&self) -> &str;
    fn from_string(s: String) -> Self;
}

Required Methods§

Source

fn as_str(&self) -> &str

Source

fn from_string(s: String) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl EntityId for String

Source§

fn as_str(&self) -> &str

Source§

fn from_string(s: String) -> Self

Implementors§