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
Get or insert a map of cached incides for the selector list of this
particular :nth-child or :nth-last-child pseudoclass
 
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 Freeze for NthIndexOfSelectorsCaches
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