Struct seed::virtual_dom::style::Style
source · 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
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”
source§impl PartialEq<Style> for Style
impl PartialEq<Style> for Style
impl Eq for Style
impl StructuralEq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.