Trait selectors::parser::SelectorImpl [−][src]
pub trait SelectorImpl: Clone + Debug + Sized + 'static { type ExtraMatchingData: Sized + Default + 'static; type AttrValue: Clone + Eq + for<'a> From<&'a str> + ToCss; type Identifier: Clone + Eq + for<'a> From<&'a str> + ToCss; type LocalName: Clone + Eq + for<'a> From<&'a str> + ToCss + Borrow<Self::BorrowedLocalName>; type NamespaceUrl: Clone + Eq + Default + Borrow<Self::BorrowedNamespaceUrl>; type NamespacePrefix: Clone + Eq + for<'a> From<&'a str> + ToCss + Default; type BorrowedNamespaceUrl: ?Sized + Eq; type BorrowedLocalName: ?Sized + Eq; type NonTSPseudoClass: Clone + Eq + NonTSPseudoClass<Impl = Self>; type PseudoElement: Clone + Eq + PseudoElement<Impl = Self>; }
This trait allows to define the parser implementation in regards of pseudo-classes/elements
NB: We need Clone so that we can derive(Clone) on struct with that are parameterized on SelectorImpl. See https://github.com/rust-lang/rust/issues/26925
Associated Types
type ExtraMatchingData: Sized + Default + 'static
[src]
type AttrValue: Clone + Eq + for<'a> From<&'a str> + ToCss
[src]
type Identifier: Clone + Eq + for<'a> From<&'a str> + ToCss
[src]
type LocalName: Clone + Eq + for<'a> From<&'a str> + ToCss + Borrow<Self::BorrowedLocalName>
[src]
type NamespaceUrl: Clone + Eq + Default + Borrow<Self::BorrowedNamespaceUrl>
[src]
type NamespacePrefix: Clone + Eq + for<'a> From<&'a str> + ToCss + Default
[src]
type BorrowedNamespaceUrl: ?Sized + Eq
[src]
type BorrowedLocalName: ?Sized + Eq
[src]
type NonTSPseudoClass: Clone + Eq + NonTSPseudoClass<Impl = Self>
[src]
non tree-structural pseudo-classes (see: https://drafts.csswg.org/selectors/#structural-pseudos)
type PseudoElement: Clone + Eq + PseudoElement<Impl = Self>
[src]
pseudo-elements