new_id

Function new_id 

Source
pub fn new_id() -> String
Expand description

Generates a new unique ID for SVG elements. The ID is prefixed with “id” and is incremented each time this function is called. This is useful for ensuring that each SVG element has a unique identifier.

§Returns

A unique ID string in the format “idN”, where N is an incrementing number.