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§

source

fn into_attribute(self) -> Attribute

Converts the object into an Attribute.

source

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,

source§

fn from(value: T) -> Box<dyn IntoAttribute>

Converts to this type from the input type.

Implementations on Foreign Types§

source§

impl IntoAttribute for &'static str

source§

impl IntoAttribute for &String

source§

impl IntoAttribute for Cow<'static, str>

source§

impl IntoAttribute for Option<Box<dyn IntoAttribute>>

source§

impl IntoAttribute for bool

source§

impl IntoAttribute for char

source§

impl IntoAttribute for f32

source§

impl IntoAttribute for f64

source§

impl IntoAttribute for i8

source§

impl IntoAttribute for i16

source§

impl IntoAttribute for i32

source§

impl IntoAttribute for i64

source§

impl IntoAttribute for i128

source§

impl IntoAttribute for isize

source§

impl IntoAttribute for u8

source§

impl IntoAttribute for u16

source§

impl IntoAttribute for u32

source§

impl IntoAttribute for u64

source§

impl IntoAttribute for u128

source§

impl IntoAttribute for usize

source§

impl IntoAttribute for Rc<str>

source§

impl IntoAttribute for String

source§

impl IntoAttribute for Arguments<'_>

source§

impl<T> IntoAttribute for Option<T>
where T: IntoAttribute,

Implementors§