pub struct PropertyDeclaration<I: HasImportance> {
pub vendor_prefix: Option<VendorPrefix>,
pub name: Atom,
pub value: UnparsedPropertyValue,
pub importance: I,
}
Fields§
§vendor_prefix: Option<VendorPrefix>
§name: Atom
§value: UnparsedPropertyValue
§importance: I
Implementations§
Source§impl<I: HasImportance> PropertyDeclaration<I>
impl<I: HasImportance> PropertyDeclaration<I>
Sourcepub fn hasACustomPropertyName(&self) -> bool
pub fn hasACustomPropertyName(&self) -> bool
pub fn hasAsciiNameIgnoringCase(&self, name: &str) -> bool
Trait Implementations§
Source§impl<I: Clone + HasImportance> Clone for PropertyDeclaration<I>
impl<I: Clone + HasImportance> Clone for PropertyDeclaration<I>
Source§fn clone(&self) -> PropertyDeclaration<I>
fn clone(&self) -> PropertyDeclaration<I>
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<I: Debug + HasImportance> Debug for PropertyDeclaration<I>
impl<I: Debug + HasImportance> Debug for PropertyDeclaration<I>
Source§impl<I: HasImportance> HasVendorPrefix for PropertyDeclaration<I>
impl<I: HasImportance> HasVendorPrefix for PropertyDeclaration<I>
fn isNotVendorPrefixed(&self) -> bool
Source§impl<I: Hash + HasImportance> Hash for PropertyDeclaration<I>
impl<I: Hash + HasImportance> Hash for PropertyDeclaration<I>
Source§impl<I: Ord + HasImportance> Ord for PropertyDeclaration<I>
impl<I: Ord + HasImportance> Ord for PropertyDeclaration<I>
Source§fn cmp(&self, other: &PropertyDeclaration<I>) -> Ordering
fn cmp(&self, other: &PropertyDeclaration<I>) -> 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<I: PartialEq + HasImportance> PartialEq for PropertyDeclaration<I>
impl<I: PartialEq + HasImportance> PartialEq for PropertyDeclaration<I>
Source§impl<I: PartialOrd + HasImportance> PartialOrd for PropertyDeclaration<I>
impl<I: PartialOrd + HasImportance> PartialOrd for PropertyDeclaration<I>
Source§impl<I: HasImportance> ToCss for PropertyDeclaration<I>
impl<I: HasImportance> ToCss for PropertyDeclaration<I>
impl<I: Eq + HasImportance> Eq for PropertyDeclaration<I>
impl<I: HasImportance> StructuralPartialEq for PropertyDeclaration<I>
Auto Trait Implementations§
impl<I> Freeze for PropertyDeclaration<I>where
I: Freeze,
impl<I> RefUnwindSafe for PropertyDeclaration<I>where
I: RefUnwindSafe,
impl<I> Send for PropertyDeclaration<I>where
I: Send,
impl<I> Sync for PropertyDeclaration<I>where
I: Sync,
impl<I> Unpin for PropertyDeclaration<I>where
I: Unpin,
impl<I> UnwindSafe for PropertyDeclaration<I>where
I: UnwindSafe,
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