Trait cushy::value::IntoReader

source ·
pub trait IntoReader<T> {
    // Required method
    fn into_reader(self) -> DynamicReader<T>;

    // Provided methods
    fn into_label(self) -> Label<T>
       where Self: Sized,
             T: Debug + Display + Send + 'static { ... }
    fn to_label(&self) -> Label<T>
       where Self: Clone,
             T: Debug + Display + Send + 'static { ... }
}
Expand description

A type that can be converted into a DynamicReader<T>.

Required Methods§

source

fn into_reader(self) -> DynamicReader<T>

Returns this value as a reader.

Provided Methods§

source

fn into_label(self) -> Label<T>
where Self: Sized, T: Debug + Display + Send + 'static,

Returns self being Displayed in a Label widget.

source

fn to_label(&self) -> Label<T>
where Self: Clone, T: Debug + Display + Send + 'static,

Returns self being Displayed in a Label widget.

Implementors§

source§

impl<T> IntoReader<T> for Dynamic<T>

source§

impl<T> IntoReader<T> for DynamicReader<T>