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 09d35c8254
commit f7070b57eb

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(