[−][src]Struct selectors::NthIndexCache
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
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]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,