Skip to main content

Bindable

Trait Bindable 

Source
pub trait Bindable:
    Clone
    + PartialEq
    + Default {
    // Required methods
    fn from_value(value: &Value) -> Option<Self>;
    fn to_value(&self) -> Value;
}
Expand description

A type a widget edits that the store can hold.

Required Methods§

Source

fn from_value(value: &Value) -> Option<Self>

Source

fn to_value(&self) -> Value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Bindable for bool

Source§

impl Bindable for f32

Source§

impl Bindable for f64

Source§

impl Bindable for i32

Source§

impl Bindable for i64

Source§

impl Bindable for String

Source§

impl Bindable for Vec<f64>

Implementors§