pub struct Style {
pub vals: IndexMap<St, CSSValue>,
}
Expand description
Handle Style separately from Attrs, since it commonly involves multiple parts, and has a different semantic meaning.
Fields§
§vals: IndexMap<St, CSSValue>
Implementations§
Trait Implementations§
Source§impl Display for Style
Output style as a string, as would be set in the DOM as the attribute value
for ‘style’. Eg: “display: flex; font-size: 1.5em”
impl Display for Style
Output style as a string, as would be set in the DOM as the attribute value for ‘style’. Eg: “display: flex; font-size: 1.5em”
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.