pub struct OurSelectorImpl;
Implementations§
Source§impl OurSelectorImpl
impl OurSelectorImpl
Sourcepub fn parse_selector(
selector_css: &str,
) -> Result<OurSelector, ParseError<'_, CustomParseError<'_>>>
pub fn parse_selector( selector_css: &str, ) -> Result<OurSelector, ParseError<'_, CustomParseError<'_>>>
Parses a selector
Sourcepub fn reparse_with_vendor_prefix<'a>(
selector: &OurSelector,
applyVendorPrefixToPseudoClasses: &'a HashMap<VendorPrefixablePseudoClassName, VendorPrefix>,
applyVendorPrefixToPseudoElements: &'a HashMap<VendorPrefixablePseudoElementName, VendorPrefix>,
) -> Option<OurSelector>
pub fn reparse_with_vendor_prefix<'a>( selector: &OurSelector, applyVendorPrefixToPseudoClasses: &'a HashMap<VendorPrefixablePseudoClassName, VendorPrefix>, applyVendorPrefixToPseudoElements: &'a HashMap<VendorPrefixablePseudoElementName, VendorPrefix>, ) -> Option<OurSelector>
Applies a vendor prefix to a CSS selector
Trait Implementations§
Source§impl Clone for OurSelectorImpl
impl Clone for OurSelectorImpl
Source§fn clone(&self) -> OurSelectorImpl
fn clone(&self) -> OurSelectorImpl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OurSelectorImpl
impl Debug for OurSelectorImpl
Source§impl Hash for OurSelectorImpl
impl Hash for OurSelectorImpl
Source§impl Ord for OurSelectorImpl
impl Ord for OurSelectorImpl
Source§fn cmp(&self, other: &OurSelectorImpl) -> Ordering
fn cmp(&self, other: &OurSelectorImpl) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OurSelectorImpl
impl PartialEq for OurSelectorImpl
Source§impl PartialOrd for OurSelectorImpl
impl PartialOrd for OurSelectorImpl
Source§impl SelectorImpl for OurSelectorImpl
impl SelectorImpl for OurSelectorImpl
type ExtraMatchingData = String
type AttrValue = Atom
type Identifier = Atom
type LocalName = Atom
type NamespacePrefix = NamespacePrefix
type NamespaceUrl = NamespaceUrl
type BorrowedNamespaceUrl = str
type BorrowedLocalName = str
Source§type NonTSPseudoClass = NonTreeStructuralPseudoClass
type NonTSPseudoClass = NonTreeStructuralPseudoClass
non tree-structural pseudo-classes
(see: https://drafts.csswg.org/selectors/#structural-pseudos)
Source§type PseudoElement = PseudoElement
type PseudoElement = PseudoElement
pseudo-elements
impl Copy for OurSelectorImpl
impl Eq for OurSelectorImpl
impl StructuralPartialEq for OurSelectorImpl
Auto Trait Implementations§
impl Freeze for OurSelectorImpl
impl RefUnwindSafe for OurSelectorImpl
impl Send for OurSelectorImpl
impl Sync for OurSelectorImpl
impl Unpin for OurSelectorImpl
impl UnwindSafe for OurSelectorImpl
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