Enum seed::virtual_dom::values::AtValue
source · pub enum AtValue {
Ignored,
None,
Some(String),
}
Expand description
Attribute value.
Example
use seed::{prelude::*, *};
struct Model {
message: String
}
let model = Model { message: "foo".to_string() };
let _ = attrs! {
At::Disabled => false.as_at_value(), // same as `=> AtValue::Ignored`
At::Value => model.message,
At::AutoFocus => AtValue::None,
};
Variants§
Ignored
The whole attribute is ignored (i.e. not rendered).
None
Attribute value is not used (i.e. rendered as empty string).
Some(String)
Rendered attribute value.
Trait Implementations§
source§impl PartialEq<AtValue> for AtValue
impl PartialEq<AtValue> for AtValue
impl Eq for AtValue
impl StructuralEq for AtValue
impl StructuralPartialEq for AtValue
Auto Trait Implementations§
impl RefUnwindSafe for AtValue
impl Send for AtValue
impl Sync for AtValue
impl Unpin for AtValue
impl UnwindSafe for AtValue
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.