pub struct AttrSelectorWithOptionalNamespace<'i, Impl: SelectorImpl<'i>> {
pub namespace: Option<NamespaceConstraint<(Impl::NamespacePrefix, Impl::NamespaceUrl)>>,
pub local_name: Impl::LocalName,
pub local_name_lower: Impl::LocalName,
pub operation: ParsedAttrSelectorOperation<Impl::AttrValue>,
pub never_matches: bool,
}
Fields§
§namespace: Option<NamespaceConstraint<(Impl::NamespacePrefix, Impl::NamespaceUrl)>>
§local_name: Impl::LocalName
§local_name_lower: Impl::LocalName
§operation: ParsedAttrSelectorOperation<Impl::AttrValue>
§never_matches: bool
Implementations§
source§impl<'i, Impl: SelectorImpl<'i>> AttrSelectorWithOptionalNamespace<'i, Impl>
impl<'i, Impl: SelectorImpl<'i>> AttrSelectorWithOptionalNamespace<'i, Impl>
pub fn namespace(&self) -> Option<NamespaceConstraint<&Impl::NamespaceUrl>>
Trait Implementations§
source§impl<'i, Impl: Clone + SelectorImpl<'i>> Clone for AttrSelectorWithOptionalNamespace<'i, Impl>where
Impl::NamespacePrefix: Clone,
Impl::NamespaceUrl: Clone,
Impl::LocalName: Clone,
Impl::AttrValue: Clone,
impl<'i, Impl: Clone + SelectorImpl<'i>> Clone for AttrSelectorWithOptionalNamespace<'i, Impl>where Impl::NamespacePrefix: Clone, Impl::NamespaceUrl: Clone, Impl::LocalName: Clone, Impl::AttrValue: Clone,
source§fn clone(&self) -> AttrSelectorWithOptionalNamespace<'i, Impl>
fn clone(&self) -> AttrSelectorWithOptionalNamespace<'i, Impl>
Returns a copy 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<'i, Impl: SelectorImpl<'i>> Debug for AttrSelectorWithOptionalNamespace<'i, Impl>
impl<'i, Impl: SelectorImpl<'i>> Debug for AttrSelectorWithOptionalNamespace<'i, Impl>
source§impl<'i, Impl: Hash + SelectorImpl<'i>> Hash for AttrSelectorWithOptionalNamespace<'i, Impl>where
Impl::NamespacePrefix: Hash,
Impl::NamespaceUrl: Hash,
Impl::LocalName: Hash,
Impl::AttrValue: Hash,
impl<'i, Impl: Hash + SelectorImpl<'i>> Hash for AttrSelectorWithOptionalNamespace<'i, Impl>where Impl::NamespacePrefix: Hash, Impl::NamespaceUrl: Hash, Impl::LocalName: Hash, Impl::AttrValue: Hash,
source§impl<'i, Impl: PartialEq + SelectorImpl<'i>> PartialEq<AttrSelectorWithOptionalNamespace<'i, Impl>> for AttrSelectorWithOptionalNamespace<'i, Impl>where
Impl::NamespacePrefix: PartialEq,
Impl::NamespaceUrl: PartialEq,
Impl::LocalName: PartialEq,
Impl::AttrValue: PartialEq,
impl<'i, Impl: PartialEq + SelectorImpl<'i>> PartialEq<AttrSelectorWithOptionalNamespace<'i, Impl>> for AttrSelectorWithOptionalNamespace<'i, Impl>where Impl::NamespacePrefix: PartialEq, Impl::NamespaceUrl: PartialEq, Impl::LocalName: PartialEq, Impl::AttrValue: PartialEq,
source§fn eq(&self, other: &AttrSelectorWithOptionalNamespace<'i, Impl>) -> bool
fn eq(&self, other: &AttrSelectorWithOptionalNamespace<'i, Impl>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.