Skip to main content

IdEnum

Trait IdEnum 

Source
pub trait IdEnum {
    type Id: Into<u64>;

    // Required method
    fn to_id(&self) -> Self::Id;
}

Required Associated Types§

Required Methods§

Source

fn to_id(&self) -> Self::Id

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§