pub struct PageAtRule {
pub page_selector_pseudo_class: Option<PageSelectorPseudoClass>,
pub property_declarations: PropertyDeclarations<Importance>,
}Expand description
A @page rule.
page: https://drafts.csswg.org/css2/page.html#page-box
page-selectors: https://drafts.csswg.org/css2/page.html#page-selectors
Fields§
§page_selector_pseudo_class: Option<PageSelectorPseudoClass>§property_declarations: PropertyDeclarations<Importance>The declaration block this page rule contains.
Trait Implementations§
Source§impl Clone for PageAtRule
impl Clone for PageAtRule
Source§fn clone(&self) -> PageAtRule
fn clone(&self) -> PageAtRule
Returns a duplicate 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 PageAtRule
impl Debug for PageAtRule
Source§impl Default for PageAtRule
impl Default for PageAtRule
Source§fn default() -> PageAtRule
fn default() -> PageAtRule
Returns the “default value” for a type. Read more
Source§impl HasPropertyDeclarations<Importance> for PageAtRule
impl HasPropertyDeclarations<Importance> for PageAtRule
fn property_declarations(&self) -> &PropertyDeclarations<Importance>
fn property_declarations_mut(&mut self) -> &mut PropertyDeclarations<Importance>
fn property_declarations_slice(&self) -> &[PropertyDeclaration<Importance>]
fn property_declarations_vec(&self) -> &Vec<PropertyDeclaration<Importance>>
fn property_declarations_vec_mut( &mut self, ) -> &mut Vec<PropertyDeclaration<Importance>>
Source§impl Hash for PageAtRule
impl Hash for PageAtRule
Source§impl Ord for PageAtRule
impl Ord for PageAtRule
Source§fn cmp(&self, other: &PageAtRule) -> Ordering
fn cmp(&self, other: &PageAtRule) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PageAtRule
impl PartialEq for PageAtRule
Source§impl PartialOrd for PageAtRule
impl PartialOrd for PageAtRule
Source§impl ToCss for PageAtRule
impl ToCss for PageAtRule
impl Eq for PageAtRule
impl StructuralPartialEq for PageAtRule
Auto Trait Implementations§
impl Freeze for PageAtRule
impl RefUnwindSafe for PageAtRule
impl Send for PageAtRule
impl Sync for PageAtRule
impl Unpin for PageAtRule
impl UnwindSafe for PageAtRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more