Trait leptos_dom::IntoAttribute
source · pub trait IntoAttribute {
// Required methods
fn into_attribute(self) -> Attribute;
fn into_attribute_boxed(self: Box<Self>) -> Attribute;
}
Expand description
Converts some type into an Attribute
.
This is implemented by default for Rust primitive and string types.
Required Methods§
sourcefn into_attribute(self) -> Attribute
fn into_attribute(self) -> Attribute
Converts the object into an Attribute
.
sourcefn into_attribute_boxed(self: Box<Self>) -> Attribute
fn into_attribute_boxed(self: Box<Self>) -> Attribute
Helper function for dealing with Box<dyn IntoAttribute>
.