Struct selectors::attr::AttrSelectorWithOptionalNamespace
source · pub struct AttrSelectorWithOptionalNamespace<Impl: SelectorImpl> {
pub namespace: Option<NamespaceConstraint<(Impl::NamespacePrefix, Impl::NamespaceUrl)>>,
pub local_name: Impl::LocalName,
pub local_name_lower: Impl::LocalName,
pub operation: ParsedAttrSelectorOperation<Impl::AttrValue>,
}
Fields§
§namespace: Option<NamespaceConstraint<(Impl::NamespacePrefix, Impl::NamespaceUrl)>>
§local_name: Impl::LocalName
§local_name_lower: Impl::LocalName
§operation: ParsedAttrSelectorOperation<Impl::AttrValue>
Implementations§
source§impl<Impl: SelectorImpl> AttrSelectorWithOptionalNamespace<Impl>
impl<Impl: SelectorImpl> AttrSelectorWithOptionalNamespace<Impl>
pub fn namespace(&self) -> Option<NamespaceConstraint<&Impl::NamespaceUrl>>
Trait Implementations§
source§impl<Impl: Clone + SelectorImpl> Clone for AttrSelectorWithOptionalNamespace<Impl>where
Impl::NamespacePrefix: Clone,
Impl::NamespaceUrl: Clone,
Impl::LocalName: Clone,
Impl::AttrValue: Clone,
impl<Impl: Clone + SelectorImpl> Clone for AttrSelectorWithOptionalNamespace<Impl>where
Impl::NamespacePrefix: Clone,
Impl::NamespaceUrl: Clone,
Impl::LocalName: Clone,
Impl::AttrValue: Clone,
source§fn clone(&self) -> AttrSelectorWithOptionalNamespace<Impl>
fn clone(&self) -> AttrSelectorWithOptionalNamespace<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<Impl: SelectorImpl> Debug for AttrSelectorWithOptionalNamespace<Impl>
impl<Impl: SelectorImpl> Debug for AttrSelectorWithOptionalNamespace<Impl>
source§impl<Impl: PartialEq + SelectorImpl> PartialEq for AttrSelectorWithOptionalNamespace<Impl>where
Impl::NamespacePrefix: PartialEq,
Impl::NamespaceUrl: PartialEq,
Impl::LocalName: PartialEq,
Impl::AttrValue: PartialEq,
impl<Impl: PartialEq + SelectorImpl> PartialEq for AttrSelectorWithOptionalNamespace<Impl>where
Impl::NamespacePrefix: PartialEq,
Impl::NamespaceUrl: PartialEq,
Impl::LocalName: PartialEq,
Impl::AttrValue: PartialEq,
source§fn eq(&self, other: &AttrSelectorWithOptionalNamespace<Impl>) -> bool
fn eq(&self, other: &AttrSelectorWithOptionalNamespace<Impl>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Impl: SelectorImpl> ToCss for AttrSelectorWithOptionalNamespace<Impl>
impl<Impl: SelectorImpl> ToCss for AttrSelectorWithOptionalNamespace<Impl>
source§impl<Impl: SelectorImpl> ToShmem for AttrSelectorWithOptionalNamespace<Impl>where
Option<NamespaceConstraint<(Impl::NamespacePrefix, Impl::NamespaceUrl)>>: ToShmem,
Impl::LocalName: ToShmem,
ParsedAttrSelectorOperation<Impl::AttrValue>: ToShmem,
impl<Impl: SelectorImpl> ToShmem for AttrSelectorWithOptionalNamespace<Impl>where
Option<NamespaceConstraint<(Impl::NamespacePrefix, Impl::NamespaceUrl)>>: ToShmem,
Impl::LocalName: ToShmem,
ParsedAttrSelectorOperation<Impl::AttrValue>: ToShmem,
impl<Impl: Eq + SelectorImpl> Eq for AttrSelectorWithOptionalNamespace<Impl>
impl<Impl: SelectorImpl> StructuralPartialEq for AttrSelectorWithOptionalNamespace<Impl>
Auto Trait Implementations§
impl<Impl> Freeze for AttrSelectorWithOptionalNamespace<Impl>where
<Impl as SelectorImpl>::LocalName: Freeze,
<Impl as SelectorImpl>::AttrValue: Freeze,
<Impl as SelectorImpl>::NamespacePrefix: Freeze,
<Impl as SelectorImpl>::NamespaceUrl: Freeze,
impl<Impl> RefUnwindSafe for AttrSelectorWithOptionalNamespace<Impl>where
<Impl as SelectorImpl>::LocalName: RefUnwindSafe,
<Impl as SelectorImpl>::AttrValue: RefUnwindSafe,
<Impl as SelectorImpl>::NamespacePrefix: RefUnwindSafe,
<Impl as SelectorImpl>::NamespaceUrl: RefUnwindSafe,
impl<Impl> Send for AttrSelectorWithOptionalNamespace<Impl>where
<Impl as SelectorImpl>::LocalName: Send,
<Impl as SelectorImpl>::AttrValue: Send,
<Impl as SelectorImpl>::NamespacePrefix: Send,
<Impl as SelectorImpl>::NamespaceUrl: Send,
impl<Impl> Sync for AttrSelectorWithOptionalNamespace<Impl>where
<Impl as SelectorImpl>::LocalName: Sync,
<Impl as SelectorImpl>::AttrValue: Sync,
<Impl as SelectorImpl>::NamespacePrefix: Sync,
<Impl as SelectorImpl>::NamespaceUrl: Sync,
impl<Impl> Unpin for AttrSelectorWithOptionalNamespace<Impl>where
<Impl as SelectorImpl>::LocalName: Unpin,
<Impl as SelectorImpl>::AttrValue: Unpin,
<Impl as SelectorImpl>::NamespacePrefix: Unpin,
<Impl as SelectorImpl>::NamespaceUrl: Unpin,
impl<Impl> UnwindSafe for AttrSelectorWithOptionalNamespace<Impl>where
<Impl as SelectorImpl>::LocalName: UnwindSafe,
<Impl as SelectorImpl>::AttrValue: UnwindSafe,
<Impl as SelectorImpl>::NamespacePrefix: UnwindSafe,
<Impl as SelectorImpl>::NamespaceUrl: UnwindSafe,
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