pub trait IntoProperty {
    // Required methods
    fn into_property(self) -> Property;
    fn into_property_boxed(self: Box<Self>) -> Property;
}
Expand description

Converts some type into a Property.

This is implemented by default for Rust primitive types, String and friends, and JsValue.

Required Methods§

source

fn into_property(self) -> Property

Converts the object into a Property.

source

fn into_property_boxed(self: Box<Self>) -> Property

Helper function for dealing with Box<dyn IntoProperty>.

Implementations on Foreign Types§

source§

impl IntoProperty for &str

source§

impl IntoProperty for &String

source§

impl IntoProperty for Option<&str>

source§

impl IntoProperty for Option<&String>

source§

impl IntoProperty for Option<bool>

source§

impl IntoProperty for Option<f32>

source§

impl IntoProperty for Option<f64>

source§

impl IntoProperty for Option<i8>

source§

impl IntoProperty for Option<i16>

source§

impl IntoProperty for Option<i32>

source§

impl IntoProperty for Option<i64>

source§

impl IntoProperty for Option<i128>

source§

impl IntoProperty for Option<isize>

source§

impl IntoProperty for Option<u8>

source§

impl IntoProperty for Option<u16>

source§

impl IntoProperty for Option<u32>

source§

impl IntoProperty for Option<u64>

source§

impl IntoProperty for Option<u128>

source§

impl IntoProperty for Option<usize>

source§

impl IntoProperty for Option<String>

source§

impl IntoProperty for Option<JsValue>

source§

impl IntoProperty for bool

source§

impl IntoProperty for f32

source§

impl IntoProperty for f64

source§

impl IntoProperty for i8

source§

impl IntoProperty for i16

source§

impl IntoProperty for i32

source§

impl IntoProperty for i64

source§

impl IntoProperty for i128

source§

impl IntoProperty for isize

source§

impl IntoProperty for u8

source§

impl IntoProperty for u16

source§

impl IntoProperty for u32

source§

impl IntoProperty for u64

source§

impl IntoProperty for u128

source§

impl IntoProperty for usize

source§

impl IntoProperty for String

source§

impl IntoProperty for JsValue

source§

impl<T> IntoProperty for MaybeSignal<T>
where T: Into<JsValue> + Clone,

source§

impl<T> IntoProperty for Memo<T>
where T: Into<JsValue> + Clone,

source§

impl<T> IntoProperty for ReadSignal<T>
where T: Into<JsValue> + Clone,

source§

impl<T> IntoProperty for RwSignal<T>
where T: Into<JsValue> + Clone,

source§

impl<T> IntoProperty for MaybeProp<T>
where T: Clone, Option<T>: Into<JsValue>,

source§

impl<T> IntoProperty for Signal<T>
where T: Into<JsValue> + Clone,

Implementors§

source§

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