Struct style::stylesheets::NamespaceRule
[−]
[src]
pub struct NamespaceRule {
pub prefix: Option<Prefix>,
pub url: Namespace,
pub source_location: SourceLocation,
}A @namespace rule.
Fields
prefix: Option<Prefix>
The namespace prefix, and None if it's the default Namespace
url: Namespace
The actual namespace url.
source_location: SourceLocation
The source location this rule was found at.
Trait Implementations
impl Clone for NamespaceRule[src]
fn clone(&self) -> NamespaceRule[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for NamespaceRule[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for NamespaceRule[src]
fn eq(&self, __arg_0: &NamespaceRule) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &NamespaceRule) -> bool[src]
This method tests for !=.
impl ToCssWithGuard for NamespaceRule[src]
fn to_css<W>(&self, _guard: &SharedRwLockReadGuard, dest: &mut W) -> Result where
W: Write, [src]
W: Write,
Serialize self in CSS syntax, writing to dest, using the given lock guard.
fn to_css_string(&self, guard: &SharedRwLockReadGuard) -> String[src]
Serialize self in CSS syntax using the given lock guard and return a string. Read more