pub trait Attribute {
// Required method
fn value(&self) -> String;
}Expand description
A trait for converting values into HTML attribute strings.
This trait is automatically implemented for any type that implements ToString,
making it easy to use various types as attribute values.
§Example
use simple_rsx::*;
let element = rsx!(<div id="my-id" hidden={true} />);