[−][src]Trait nuuro::asset_id::IdU16
A value that can be converted to a u16
ID, implemented by asset enums.
Required methods
fn id_u16(self) -> u16
Converts self to a u16
ID.
This will be value between 0
(inclusive) and Self::count()
(exclusive).
fn count() -> u16
Returns the number of IDs in this enum.
fn from_u16(id: u16) -> Option<Self>
Converts a u16
ID to the asset enum value, or None
if id >= Self::count()