Struct style::stylesheets::viewport_rule::ViewportRule
source · pub struct ViewportRule {
pub declarations: Vec<ViewportDescriptorDeclaration>,
}
Expand description
A @viewport
rule.
Fields§
§declarations: Vec<ViewportDescriptorDeclaration>
The declarations contained in this @viewport rule.
Implementations§
source§impl ViewportRule
impl ViewportRule
sourcepub fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
pub fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
Parse a single @viewport rule.
TODO(emilio): This could use the Parse
trait now.
Trait Implementations§
source§impl Clone for ViewportRule
impl Clone for ViewportRule
source§fn clone(&self) -> ViewportRule
fn clone(&self) -> ViewportRule
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 Debug for ViewportRule
impl Debug for ViewportRule
source§impl MallocSizeOf for ViewportRule
impl MallocSizeOf for ViewportRule
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq<ViewportRule> for ViewportRule
impl PartialEq<ViewportRule> for ViewportRule
source§fn eq(&self, other: &ViewportRule) -> bool
fn eq(&self, other: &ViewportRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToCssWithGuard for ViewportRule
impl ToCssWithGuard for ViewportRule
source§fn to_css(
&self,
_guard: &SharedRwLockReadGuard<'_>,
dest: &mut CssStringWriter
) -> Result
fn to_css(
&self,
_guard: &SharedRwLockReadGuard<'_>,
dest: &mut CssStringWriter
) -> Result
Serialize
self
in CSS syntax, writing to dest
, using the given lock guard.source§fn to_css_string(&self, guard: &SharedRwLockReadGuard<'_>) -> CssString
fn to_css_string(&self, guard: &SharedRwLockReadGuard<'_>) -> CssString
Serialize
self
in CSS syntax using the given lock guard and return a string. Read moresource§impl ToShmem for ViewportRule
impl ToShmem for ViewportRule
impl StructuralPartialEq for ViewportRule
Auto Trait Implementations§
impl RefUnwindSafe for ViewportRule
impl Send for ViewportRule
impl Sync for ViewportRule
impl Unpin for ViewportRule
impl UnwindSafe for ViewportRule
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert