pub struct CssProperty { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
CSS property declaration data.
Implementations§
Source§impl CssProperty
impl CssProperty
pub fn builder() -> CssPropertyBuilder
Sourcepub fn important(&self) -> Option<&bool>
pub fn important(&self) -> Option<&bool>
Whether the property has “!important” annotation (implies false if absent).
Sourcepub fn implicit(&self) -> Option<&bool>
pub fn implicit(&self) -> Option<&bool>
Whether the property is implicit (implies false if absent).
Sourcepub fn parsed_ok(&self) -> Option<&bool>
pub fn parsed_ok(&self) -> Option<&bool>
Whether the property is understood by the browser (implies true if absent).
Sourcepub fn disabled(&self) -> Option<&bool>
pub fn disabled(&self) -> Option<&bool>
Whether the property is disabled by the user (present for source-based properties only).
Sourcepub fn range(&self) -> Option<&SourceRange>
pub fn range(&self) -> Option<&SourceRange>
The entire property range in the enclosing style declaration (if available).
Trait Implementations§
Source§impl Clone for CssProperty
impl Clone for CssProperty
Source§fn clone(&self) -> CssProperty
fn clone(&self) -> CssProperty
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 CssProperty
impl Debug for CssProperty
Source§impl<'de> Deserialize<'de> for CssProperty
impl<'de> Deserialize<'de> for CssProperty
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 CssProperty
impl RefUnwindSafe for CssProperty
impl Send for CssProperty
impl Sync for CssProperty
impl Unpin for CssProperty
impl UnwindSafe for CssProperty
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