rustdoc::theme

Function parse_property_value

source
fn parse_property_value(iter: &mut Peekable<Chars<'_>>) -> (String, bool)
Expand description

Try to get the value of a CSS property (the #fff in color: #fff). It’ll stop when it encounters a { or a ; character.

It returns the value string and a boolean set to true if the value is ended with a } because it means that the parent block is done and that we should notify the parent caller.