pub struct CssStyle { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
CSS style representation.
Implementations§
Source§impl CssStyle
impl CssStyle
pub fn builder() -> CssStyleBuilder
Sourcepub fn style_sheet_id(&self) -> Option<&StyleSheetId>
pub fn style_sheet_id(&self) -> Option<&StyleSheetId>
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
Sourcepub fn css_properties(&self) -> &[CssProperty]
pub fn css_properties(&self) -> &[CssProperty]
CSS properties in the style.
Sourcepub fn shorthand_entries(&self) -> &[ShorthandEntry]
pub fn shorthand_entries(&self) -> &[ShorthandEntry]
Computed values for all shorthands found in the style.
Sourcepub fn range(&self) -> Option<&SourceRange>
pub fn range(&self) -> Option<&SourceRange>
Style declaration range in the enclosing stylesheet (if available).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CssStyle
impl<'de> Deserialize<'de> for CssStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CssStyle
impl RefUnwindSafe for CssStyle
impl Send for CssStyle
impl Sync for CssStyle
impl Unpin for CssStyle
impl UnwindSafe for CssStyle
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