yew_stdweb::html

Trait IntoOptPropValue

Source
pub trait IntoOptPropValue<T> {
    // Required method
    fn into_opt_prop_value(self) -> Option<T>;
}
Expand description

A trait similar to Into<Option<T>> which allows conversion to an optional value of a Properties struct.

Required Methods§

Source

fn into_opt_prop_value(self) -> Option<T>

Convert self to an optional value of a Properties struct.

Implementations on Foreign Types§

Source§

impl IntoOptPropValue<Cow<'static, str>> for &'static str

Source§

fn into_opt_prop_value(self) -> Option<Cow<'static, str>>

Source§

impl IntoOptPropValue<Cow<'static, str>> for Option<&'static str>

Source§

fn into_opt_prop_value(self) -> Option<Cow<'static, str>>

Source§

impl IntoOptPropValue<Cow<'static, str>> for Option<String>

Source§

fn into_opt_prop_value(self) -> Option<Cow<'static, str>>

Source§

impl IntoOptPropValue<Cow<'static, str>> for String

Source§

fn into_opt_prop_value(self) -> Option<Cow<'static, str>>

Source§

impl IntoOptPropValue<String> for &'static str

Source§

impl IntoOptPropValue<String> for Option<&'static str>

Implementors§

Source§

impl IntoOptPropValue<Cow<'static, str>> for Classes

Source§

impl<T, V> IntoOptPropValue<V> for T
where T: IntoPropValue<Option<V>>,