Struct selectors::NthIndexCache
source · pub struct NthIndexCache { /* private fields */ }
Expand description
A cache to speed up matching of nth-index-like selectors.
See [1] for some discussion around the design tradeoffs.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1401855#c3
Implementations§
source§impl NthIndexCache
impl NthIndexCache
Trait Implementations§
source§impl Default for NthIndexCache
impl Default for NthIndexCache
source§fn default() -> NthIndexCache
fn default() -> NthIndexCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NthIndexCache
impl Send for NthIndexCache
impl !Sync for NthIndexCache
impl Unpin for NthIndexCache
impl UnwindSafe for NthIndexCache
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more