Merge f7070b57ebd888a364409876bddb799d8a7a1dc2 into 0264534928864c7aed0466d670824ac0ce5ca1a8

This commit is contained in:
Robin 2025-07-10 18:16:44 +02:00 committed by GitHub
commit 76d3afb84b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,12 +38,12 @@ pub use crate::__select_where as select_where;
/// A filter for selecting elements within the document. /// A filter for selecting elements within the document.
/// ///
/// You can construct a selector in the following ways: /// You can construct a selector in the following ways:
/// - you can use an element [function] /// - use an element [function]
/// - you can filter for an element function with /// - filter for an element function with
/// [specific fields]($function.where) /// [specific fields]($function.where)
/// - you can use a [string]($str) or [regular expression]($regex) /// - use a [string]($str) or [regular expression]($regex)
/// - you can use a [`{<label>}`]($label) /// - use a [`{<label>}`]($label)
/// - you can use a [`location`] /// - use a [`location`]
/// - call the [`selector`] constructor to convert any of the above types into a /// - call the [`selector`] constructor to convert any of the above types into a
/// selector value and use the methods below to refine it /// selector value and use the methods below to refine it
/// ///
@ -148,7 +148,9 @@ impl Selector {
impl Selector { impl Selector {
/// Turns a value into a selector. The following values are accepted: /// Turns a value into a selector. The following values are accepted:
/// - An element function like a `heading` or `figure`. /// - An element function like a `heading` or `figure`.
/// - A [string]($str) or [regular expression]($regex).
/// - A `{<label>}`. /// - A `{<label>}`.
/// - A [`location`].
/// - A more complex selector like `{heading.where(level: 1)}`. /// - A more complex selector like `{heading.where(level: 1)}`.
#[func(constructor)] #[func(constructor)]
pub fn construct( pub fn construct(