Trait leptos::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>
.
Trait Implementations§
source§impl<T> From<T> for Box<dyn IntoAttribute>where
T: IntoAttribute + 'static,
impl<T> From<T> for Box<dyn IntoAttribute>where
T: IntoAttribute + 'static,
source§fn from(value: T) -> Box<dyn IntoAttribute>
fn from(value: T) -> Box<dyn IntoAttribute>
Converts to this type from the input type.