Skip to main content

selectors/
lib.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5// Make |cargo bench| work.
6#![cfg_attr(feature = "bench", feature(test))]
7
8pub mod attr;
9pub mod bloom;
10mod builder;
11pub mod context;
12pub mod kleene_value;
13pub mod matching;
14mod nth_index_cache;
15pub mod parser;
16pub mod relative_selector;
17pub mod sink;
18pub mod subtree_filter;
19mod tree;
20pub mod visitor;
21
22pub use crate::nth_index_cache::NthIndexCache;
23pub use crate::parser::{Parser, SelectorImpl, SelectorList};
24pub use crate::tree::{Element, OpaqueElement};
25
26/// A hash map using the Fx hasher.
27pub type FxHashMap<K, V> = hashbrown::HashMap<K, V, rustc_hash::FxBuildHasher>;