tf2_enum/
traits.rs

1
2/// Attribute values for an item attribute.
3pub trait Attribute: Sized {
4    const DEFINDEX: u32;
5    const NAME: &str;
6    const ATTRIBUTE_CLASS: &str;
7    const DESCRIPTION_STRING: Option<&str>;
8    const DESCRIPTION_FORMAT: Option<&str>;
9    const EFFECT_TYPE: &str;
10    const HIDDEN: bool;
11    const STORED_AS_INTEGER: bool;
12}
13
14/// Associated attribute values for a set of item attributes.
15pub trait Attributes: Sized {
16    const DEFINDEX: &[u32];
17    const NAME: &[&str];
18    const ATTRIBUTE_CLASS: &[&str];
19    const DESCRIPTION_STRING: &[Option<&str>];
20    const DESCRIPTION_FORMAT: &[Option<&str>];
21    const EFFECT_TYPE: &[&str];
22    const HIDDEN: &[bool];
23    const STORED_AS_INTEGER: &[bool];
24}