pub struct CompoundSel {Show 23 fields
pub tag: Option<String>,
pub tag_raw: Option<String>,
pub no_namespace: bool,
pub id: Option<String>,
pub classes: Vec<String>,
pub attrs: Vec<AttrSel>,
pub attr_ext: Vec<AttrExt>,
pub not: Vec<CompoundSel>,
pub not_complex: Vec<Vec<SelStep>>,
pub is_list: Vec<CompoundSel>,
pub is_complex: Vec<Vec<SelStep>>,
pub has: Vec<RelSel>,
pub is_has_anchor: bool,
pub pos: Vec<PosPseudo>,
pub pos_of_type: Vec<PosPseudo>,
pub is_scope: bool,
pub is_empty: bool,
pub is_root: bool,
pub is_checked: bool,
pub is_disabled: bool,
pub is_enabled: bool,
pub is_valid: bool,
pub is_invalid: bool,
}Fields§
§tag: Option<String>型セレクタ(小文字化済み)。
tag_raw: Option<String>型セレクタの書かれたままの大小(HTML 以外の要素は大小を区別して比べる)。
no_namespace: bool|tag / |*(名前空間を持たない要素だけ)。
id: Option<String>§classes: Vec<String>§attrs: Vec<AttrSel>§attr_ext: Vec<AttrExt>attrs と同じ添字の付帯情報(フラグ i/s・*|)。
not: Vec<CompoundSel>:not(sel1, sel2, ...) の中身(結合子を含まないもの)。
not_complex: Vec<Vec<SelStep>>:not(...) の中身のうち結合子を含むもの(:not(table p))。どれかに一致したら不一致。
is_list: Vec<CompoundSel>:is(sel1, sel2, ...) / :where(...) の中身(結合子を含まないもの)。
is_complex: Vec<Vec<SelStep>>:is(...) / :where(...) の中身のうち結合子を含むもの。is_list と合わせたどれかに一致すればよい
(これだけのときは is_list に NEVER_MATCH_TAG の番兵を入れてあり、従来の照合では一致しない)。
has: Vec<RelSel>:has(rel1, rel2, ...)。どれかの相対セレクタに一致する要素があれば一致。
is_has_anchor: bool:has() の相対セレクタの起点(RelSel::anchored の先頭段だけが持つ)。
pos: Vec<PosPseudo>:first-child / :last-child / :only-child / :nth-child(...)。
pos_of_type: Vec<PosPseudo>:first-of-type / :last-of-type / :only-of-type / :nth-of-type(...)。
is_scope: bool:scope(呼び出し元の起点要素)。
is_empty: bool:empty(子要素および非空テキストを持たない要素)。
is_root: bool:root(ドキュメントルート要素、通常 )。
is_checked: bool:checked(checkbox / radio の checked 属性またはプロパティ)。
is_disabled: bool:disabled(disabled 属性を持つフォーム要素等)。
is_enabled: bool:enabled(disabled 属性を持たないフォーム要素等)。
is_valid: bool:valid(制約検証を満たすフォーム要素)。
is_invalid: bool:invalid(制約検証を満たさないフォーム要素)。
Trait Implementations§
Source§impl Clone for CompoundSel
impl Clone for CompoundSel
Source§impl Debug for CompoundSel
impl Debug for CompoundSel
Source§impl Default for CompoundSel
impl Default for CompoundSel
impl Eq for CompoundSel
Source§impl PartialEq for CompoundSel
impl PartialEq for CompoundSel
impl StructuralPartialEq for CompoundSel
Auto Trait Implementations§
impl Freeze for CompoundSel
impl RefUnwindSafe for CompoundSel
impl Send for CompoundSel
impl Sync for CompoundSel
impl Unpin for CompoundSel
impl UnsafeUnpin for CompoundSel
impl UnwindSafe for CompoundSel
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
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
§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
key and return true if they are equal.