pub struct StatefulCssProperty {
pub state: PseudoStateType,
pub prop_type: CssPropertyType,
pub property: CssProperty,
}Expand description
A CSS property tagged with its pseudo-state and property type.
Replaces the per-pseudo-state BTreeMap approach: instead of 6 BTreeMaps
per node (Normal/Hover/Active/Focus/Dragging/DragOver), we store one Vec
per node and tag each property with its state. Lookups use .iter().find().
Fields§
§state: PseudoStateType§prop_type: CssPropertyType§property: CssPropertyTrait Implementations§
Source§impl Clone for StatefulCssProperty
impl Clone for StatefulCssProperty
Source§fn clone(&self) -> StatefulCssProperty
fn clone(&self) -> StatefulCssProperty
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 Debug for StatefulCssProperty
impl Debug for StatefulCssProperty
Source§impl PartialEq for StatefulCssProperty
impl PartialEq for StatefulCssProperty
Source§fn eq(&self, other: &StatefulCssProperty) -> bool
fn eq(&self, other: &StatefulCssProperty) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatefulCssProperty
Auto Trait Implementations§
impl Freeze for StatefulCssProperty
impl RefUnwindSafe for StatefulCssProperty
impl Send for StatefulCssProperty
impl Sync for StatefulCssProperty
impl Unpin for StatefulCssProperty
impl UnsafeUnpin for StatefulCssProperty
impl UnwindSafe for StatefulCssProperty
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