Function rsvg::color::map_color_parse_error
source · fn map_color_parse_error(err: ParseError<'_, ()>) -> ParseError<'_>
Expand description
Turn a short-lived [cssparser::ParseError
] into a long-lived ParseError
.
cssparser’s error type has a lifetime equal to the string being parsed. We want
a long-lived error so we can store it away if needed. Basically, here we turn
a &str
into a String
.