pub struct NthIndexOfSelectorsCaches(FxHashMap<SelectorListCacheKey, NthIndexCacheInner>);
Expand description
Use a different map of cached indices per :nth-child’s or :nth-last-child’s selector list
Tuple Fields§
§0: FxHashMap<SelectorListCacheKey, NthIndexCacheInner>
Implementations§
source§impl NthIndexOfSelectorsCaches
impl NthIndexOfSelectorsCaches
Get or insert a map of cached incides for the selector list of this particular :nth-child or :nth-last-child pseudoclass
pub fn lookup<Impl: SelectorImpl>( &mut self, selectors: &[Selector<Impl>] ) -> &mut NthIndexCacheInner
Trait Implementations§
source§impl Default for NthIndexOfSelectorsCaches
impl Default for NthIndexOfSelectorsCaches
source§fn default() -> NthIndexOfSelectorsCaches
fn default() -> NthIndexOfSelectorsCaches
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NthIndexOfSelectorsCaches
impl Send for NthIndexOfSelectorsCaches
impl !Sync for NthIndexOfSelectorsCaches
impl Unpin for NthIndexOfSelectorsCaches
impl UnwindSafe for NthIndexOfSelectorsCaches
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