Struct selectors::NthIndexCache
[−]
[src]
pub struct NthIndexCache { /* fields omitted */ }
A cache to speed up matching of nth-index-like selectors.
See [1] for some discussion around the design tradeoffs.
Methods
impl NthIndexCache
[src]
pub fn get(
&mut self,
is_of_type: bool,
is_from_end: bool
) -> &mut NthIndexCacheInner
[src]
&mut self,
is_of_type: bool,
is_from_end: bool
) -> &mut NthIndexCacheInner
Gets the appropriate cache for the given parameters.
Trait Implementations
impl Default for NthIndexCache
[src]
fn default() -> NthIndexCache
[src]
Returns the "default value" for a type. Read more