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", so this trait is not object safe.

Implementors§

Source§

impl ResourceId for ThreadPoolId

Available on crate feature std only.
Source§

const COUNT: usize = 1usize