Function get_attributes

Source
pub fn get_attributes(attributes: &HashMap<String, String>) -> String
Expand description

Formats the attributes from the given HashMap into a specific string format This string will be passed to the macros as arguments

§Arguments

  • map - A reference to the HashMap containing attribute key-value pairs

§Returns

  • A String containing formatted attribute key-value pairs enclosed in square brackets

This formats the value of the attributes as enclosed by double quots