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§

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: IntoAttribute + 'static> From<T> for Box<dyn IntoAttribute>

source§

fn from(value: T) -> Self

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 Oco<'static, str>

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 IntoAttribute for TextProp

source§

impl<T> IntoAttribute for MaybeSignal<T>
where T: IntoAttribute + Clone,

source§

impl<T> IntoAttribute for Memo<T>
where T: IntoAttribute + Clone,

source§

impl<T> IntoAttribute for ReadSignal<T>
where T: IntoAttribute + Clone,

source§

impl<T> IntoAttribute for RwSignal<T>
where T: IntoAttribute + Clone,

source§

impl<T> IntoAttribute for MaybeProp<T>
where T: IntoAttribute + Clone,

source§

impl<T> IntoAttribute for Signal<T>
where T: IntoAttribute + Clone,

source§

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

Implementors§

source§

impl IntoAttribute for Attribute

source§

impl IntoAttribute for Nonce

source§

impl<T, U> IntoAttribute for T
where T: Fn() -> U + 'static, U: IntoAttribute,