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

Trait Implementations

impl<Impl: Eq + SelectorImpl> Eq for Namespace<Impl> where Impl::NamespacePrefix: Eq,
        Impl::NamespaceUrl: Eq
[src]

impl<Impl: PartialEq + SelectorImpl> PartialEq for Namespace<Impl> where Impl::NamespacePrefix: PartialEq,
        Impl::NamespaceUrl: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<Impl: Clone + SelectorImpl> Clone for Namespace<Impl> where Impl::NamespacePrefix: Clone,
        Impl::NamespaceUrl: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Impl: Hash + SelectorImpl> Hash for Namespace<Impl> where Impl::NamespacePrefix: Hash,
        Impl::NamespaceUrl: Hash
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl<Impl: SelectorImpl> Default for Namespace<Impl>
[src]

Returns the "default value" for a type. Read more

impl<Impl: SelectorImpl> Debug for Namespace<Impl>
[src]

Formats the value using the given formatter.

impl<Impl: SelectorImpl> ToCss for Namespace<Impl>
[src]

Serialize self in CSS syntax, writing to dest.

Serialize self in CSS syntax and return a string. Read more

Serialize self in CSS syntax and return a result compatible with std::fmt::Show. Read more