Struct style::stylesheets::viewport_rule::ViewportRule
[−]
[src]
pub struct ViewportRule {
pub declarations: Vec<ViewportDescriptorDeclaration>,
}A @viewport rule.
Fields
declarations: Vec<ViewportDescriptorDeclaration>
The declarations contained in this @viewport rule.
Methods
impl ViewportRule[src]
pub fn parse<'i, 't, R>(
context: &ParserContext,
error_context: &ParserErrorContext<R>,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>> where
R: ParseErrorReporter, [src]
context: &ParserContext,
error_context: &ParserErrorContext<R>,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>> where
R: ParseErrorReporter,
Parse a single @viewport rule.
impl ViewportRule[src]
pub fn from_meta(content: &str) -> Option<ViewportRule>[src]
Trait Implementations
impl Clone for ViewportRule[src]
fn clone(&self) -> ViewportRule[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 ViewportRule[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for ViewportRule[src]
fn eq(&self, __arg_0: &ViewportRule) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ViewportRule) -> bool[src]
This method tests for !=.
impl MallocSizeOf for ViewportRule[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl ToCssWithGuard for ViewportRule[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