pub trait IdU16: Sized {
fn id_u16(self) -> u16;
fn count() -> u16;
fn from_u16(id: u16) -> Option<Self>;
}
Expand description
A value that can be converted to a u16
ID, implemented by asset enums.
pub trait IdU16: Sized {
fn id_u16(self) -> u16;
fn count() -> u16;
fn from_u16(id: u16) -> Option<Self>;
}
A value that can be converted to a u16
ID, implemented by asset enums.