pub struct RelSel {
pub combinator: Combinator,
pub steps: Vec<SelStep>,
pub anchored: Vec<SelStep>,
}Expand description
:has() の相対セレクタ 1 件。
Fields§
§combinator: Combinator先頭の結合子(:has(> a) なら Child。省略時は Descendant)。
steps: Vec<SelStep>相対セレクタ本体(steps[0].combinator は None)。
anchored: Vec<SelStep>先頭に「:has() を評価している要素」を表す段(CompoundSel::is_has_anchor)を置き、
steps[0] の結合子を combinator にした絶対形。照合側は、アンカー段がその要素にだけ
一致するとして通常の複合セレクタと同じ要領で右から照合すればよい。
Trait Implementations§
impl Eq for RelSel
impl StructuralPartialEq for RelSel
Auto Trait Implementations§
impl Freeze for RelSel
impl RefUnwindSafe for RelSel
impl Send for RelSel
impl Sync for RelSel
impl Unpin for RelSel
impl UnsafeUnpin for RelSel
impl UnwindSafe for RelSel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.