Skip to main content

CachedSelectors

Struct CachedSelectors 

Source
pub struct CachedSelectors {
Show 44 fields pub title: Selector, pub meta: Selector, pub link: Selector, pub base: Selector, pub html: Selector, pub body: Selector, pub article: Selector, pub main: Selector, pub main_role: Selector, pub headings: Selector, pub p: Selector, pub blockquote: Selector, pub pre: Selector, pub pre_code: Selector, pub code: Selector, pub ul: Selector, pub ol: Selector, pub li: Selector, pub dl: Selector, pub dt: Selector, pub dd: Selector, pub table: Selector, pub thead: Selector, pub tbody: Selector, pub tfoot: Selector, pub tr: Selector, pub th: Selector, pub td: Selector, pub caption: Selector, pub a: Selector, pub img: Selector, pub picture: Selector, pub source: Selector, pub figure: Selector, pub figcaption: Selector, pub script: Selector, pub style: Selector, pub noscript: Selector, pub nav: Selector, pub header: Selector, pub footer: Selector, pub aside: Selector, pub json_ld: Selector, pub microdata: Selector,
}
Expand description

预编译的 CSS 选择器集合

通过 lazy_staticSELECTORS 全局实例访问。 所有选择器在首次访问时编译一次,后续复用。

Fields§

§title: Selector

title 元素选择器

§meta: Selector

meta 元素选择器

§link: Selector

link 元素选择器

§base: Selector

base 元素选择器

§html: Selector

html 元素选择器

§body: Selector

body 元素选择器

§article: Selector

article 元素选择器

§main: Selector

main 元素选择器

§main_role: Selector

[role=main] 选择器

§headings: Selector

标题元素集合选择器:h1, h2, h3, h4, h5, h6

§p: Selector

p 元素选择器

§blockquote: Selector

blockquote 元素选择器

§pre: Selector

pre 元素选择器

§pre_code: Selector

pre code 后代选择器(代码块)

§code: Selector

code 元素选择器

§ul: Selector

ul 元素选择器

§ol: Selector

ol 元素选择器

§li: Selector

li 元素选择器

§dl: Selector

dl 元素选择器

§dt: Selector

dt 元素选择器

§dd: Selector

dd 元素选择器

§table: Selector

table 元素选择器

§thead: Selector

thead 元素选择器

§tbody: Selector

tbody 元素选择器

§tfoot: Selector

tfoot 元素选择器

§tr: Selector

tr 元素选择器

§th: Selector

th 元素选择器

§td: Selector

td 元素选择器

§caption: Selector

caption 元素选择器

§a: Selector

a 元素选择器

§img: Selector

img 元素选择器

§picture: Selector

picture 元素选择器

§source: Selector

source 元素选择器

§figure: Selector

figure 元素选择器

§figcaption: Selector

figcaption 元素选择器

§script: Selector

script 元素选择器

§style: Selector

style 元素选择器

§noscript: Selector

noscript 元素选择器

§nav: Selector

nav 元素选择器

§header: Selector

header 元素选择器

§footer: Selector

footer 元素选择器

§aside: Selector

aside 元素选择器

§json_ld: Selector

script[type="application/ld+json"] 选择器(JSON-LD 结构化数据)

§microdata: Selector

[itemscope][itemtype] 选择器(Microdata 结构化数据)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.