Struct selectors::parser::Namespace
[−]
[src]
pub struct Namespace<Impl: SelectorImpl> { pub prefix: Option<Impl::NamespacePrefix>, pub url: Impl::NamespaceUrl, }
FIXME(SimonSapin): should Hash only hash the URL? What is it used for?
Fields
prefix: Option<Impl::NamespacePrefix>
url: Impl::NamespaceUrl
Trait Implementations
impl<Impl: Eq + SelectorImpl> Eq for Namespace<Impl> where Impl::NamespacePrefix: Eq,
Impl::NamespaceUrl: Eq
[src]
Impl::NamespaceUrl: Eq
impl<Impl: PartialEq + SelectorImpl> PartialEq for Namespace<Impl> where Impl::NamespacePrefix: PartialEq,
Impl::NamespaceUrl: PartialEq
[src]
Impl::NamespaceUrl: PartialEq
fn eq(&self, __arg_0: &Namespace<Impl>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Namespace<Impl>) -> bool
This method tests for !=
.
impl<Impl: Clone + SelectorImpl> Clone for Namespace<Impl> where Impl::NamespacePrefix: Clone,
Impl::NamespaceUrl: Clone
[src]
Impl::NamespaceUrl: Clone
fn clone(&self) -> Namespace<Impl>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<Impl: Hash + SelectorImpl> Hash for Namespace<Impl> where Impl::NamespacePrefix: Hash,
Impl::NamespaceUrl: Hash
[src]
Impl::NamespaceUrl: Hash
fn hash<__HImpl: Hasher>(&self, __arg_0: &mut __HImpl)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<Impl: SelectorImpl> Default for Namespace<Impl>
[src]
impl<Impl: SelectorImpl> Debug for Namespace<Impl>
[src]
impl<Impl: SelectorImpl> ToCss for Namespace<Impl>
[src]
fn to_css<W>(&self, dest: &mut W) -> Result where W: Write
Serialize self
in CSS syntax, writing to dest
.
fn to_css_string(&self) -> String
Serialize self
in CSS syntax and return a string. Read more
fn fmt_to_css<W>(&self, dest: &mut W) -> Result<(), Error> where W: Write
Serialize self
in CSS syntax and return a result compatible with std::fmt::Show
. Read more