For completeness, add all value types accepted by selector constructor

This commit is contained in:
mewmew 2025-07-02 15:55:41 +02:00
parent 7897e86bcc
commit a99cbb3e70

View File

@ -148,7 +148,9 @@ impl Selector {
impl Selector {
/// Turns a value into a selector. The following values are accepted:
/// - An element function like a `heading` or `figure`.
/// - A [string]($str) or [regular expression]($regex).
/// - A `{<label>}`.
/// - A [`location`].
/// - A more complex selector like `{heading.where(level: 1)}`.
#[func(constructor)]
pub fn construct(