Skip to main content

ResourceId

Trait ResourceId 

Source
pub trait ResourceId: Copy + Eq {
    const COUNT: usize;

    // Required method
    fn index(self) -> usize;
}
Expand description

Trait implemented by resource id enums generated by bundle_resources!.

Required Associated Constants§

Required Methods§

Source

fn index(self) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§