parse_property_value in rustdoc::theme - Rust
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.

Skip to main content

## parse_property_value

# 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.