Skip to main content

IdType

Trait IdType 

Source
pub trait IdType: Copy {
    // Required method
    fn from_raw(raw: u64) -> Self;
}
Expand description

Trait implemented by all declare_id! types, enabling generic ID allocation.

Required Methods§

Source

fn from_raw(raw: u64) -> 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.

Implementors§