Function get_attribute_id

Source
pub fn get_attribute_id(name: &str) -> i16
Expand description

Get the numerical ID of an attribute with a certain name.

If an invalid name is used, the ID returned is -1

name The name of the attribute.

Returns the ID of the attribute.