Enum seed::virtual_dom::values::CSSValue
source · pub enum CSSValue {
Ignored,
Some(String),
}
Expand description
CSS property value.
Example
use seed::{prelude::*, *};
let disabled = true;
let style = style! {
"padding" => px(12),
"background-color" => if disabled { CSSValue::Ignored } else { "green".into() },
"display" => CSSValue::Some("block".to_string()),
};
Variants§
Ignored
The whole CSS property is ignored (i.e. not rendered).
Some(String)
Rendered CSS property value.
Trait Implementations§
source§impl PartialEq<CSSValue> for CSSValue
impl PartialEq<CSSValue> for CSSValue
impl Eq for CSSValue
impl StructuralEq for CSSValue
impl StructuralPartialEq for CSSValue
Auto Trait Implementations§
impl RefUnwindSafe for CSSValue
impl Send for CSSValue
impl Sync for CSSValue
impl Unpin for CSSValue
impl UnwindSafe for CSSValue
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.