Skip to main content

IntoValue

Trait IntoValue 

Source
pub trait IntoValue<T> {
    // Required method
    fn into_value(self) -> Value<T>;
}
Expand description

What a view or modifier taking a value accepts: the value itself, or a closure computing it from signals.

Required Methods§

Source

fn into_value(self) -> Value<T>

The Value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoValue<String> for &String

Source§

impl IntoValue<String> for &str

Source§

impl IntoValue<String> for String

Source§

impl IntoValue<bool> for bool

Source§

impl IntoValue<f64> for f64

Implementors§

Source§

impl IntoValue<Color> for Color

Source§

impl<T, F: Fn() -> T + 'static> IntoValue<T> for F