pub struct CSSProperty<'a> { /* private fields */ }Expand description
CSS property declaration data.
Implementations§
Source§impl<'a> CSSProperty<'a>
impl<'a> CSSProperty<'a>
Sourcepub fn builder(
name: impl Into<Cow<'a, str>>,
value: impl Into<Cow<'a, str>>,
) -> CSSPropertyBuilder<'a>
pub fn builder( name: impl Into<Cow<'a, str>>, value: impl Into<Cow<'a, str>>, ) -> CSSPropertyBuilder<'a>
Creates a builder for this type with the required parameters:
name: The property name.value: The property value.
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).
Sourcepub fn longhand_properties(&self) -> Option<&[Box<CSSProperty<'a>>]>
pub fn longhand_properties(&self) -> Option<&[Box<CSSProperty<'a>>]>
Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.
Trait Implementations§
Source§impl<'a> Clone for CSSProperty<'a>
impl<'a> Clone for CSSProperty<'a>
Source§fn clone(&self) -> CSSProperty<'a>
fn clone(&self) -> CSSProperty<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CSSProperty<'a>
impl<'a> Debug for CSSProperty<'a>
Source§impl<'a> Default for CSSProperty<'a>
impl<'a> Default for CSSProperty<'a>
Source§fn default() -> CSSProperty<'a>
fn default() -> CSSProperty<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for CSSProperty<'a>
impl<'de, 'a> Deserialize<'de> for CSSProperty<'a>
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<'a> Freeze for CSSProperty<'a>
impl<'a> RefUnwindSafe for CSSProperty<'a>
impl<'a> Send for CSSProperty<'a>
impl<'a> Sync for CSSProperty<'a>
impl<'a> Unpin for CSSProperty<'a>
impl<'a> UnsafeUnpin for CSSProperty<'a>
impl<'a> UnwindSafe for CSSProperty<'a>
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