pub struct CSSProperty<'a> { /* private fields */ }Expand description
CSS property declaration data.
Implementations§
Source§impl<'a> CSSProperty<'a>
impl<'a> CSSProperty<'a>
pub fn builder( name: impl Into<Cow<'a, str>>, value: impl Into<Cow<'a, str>>, ) -> CSSPropertyBuilder<'a>
pub fn name(&self) -> &str
pub fn value(&self) -> &str
pub fn important(&self) -> Option<bool>
pub fn implicit(&self) -> Option<bool>
pub fn text(&self) -> Option<&str>
pub fn parsedOk(&self) -> Option<bool>
pub fn disabled(&self) -> Option<bool>
pub fn range(&self) -> Option<&SourceRange>
pub fn longhandProperties(&self) -> Option<&[Box<CSSProperty<'a>>]>
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