Skip to main content

declared_key

Function declared_key 

Source
pub fn declared_key(kind: &str, id: &str, attr: Option<&str>) -> String
Expand description

The key of a declaration’s text: <kind>-<slug(id)>, then .<attr> when given.