cushy::widgets::label

Trait Displayable

source
pub trait Displayable<T>
where T: Debug + Display + Send + 'static,
{ // Required method fn into_displayable(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 { ... } }
Expand description

A type that can be displayed as a Label.

Required Methods§

source

fn into_displayable(self) -> DynamicReader<T>

Returns this value as a displayable 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,

Returns self being Displayed in a Label widget.

Implementors§

source§

impl<T> Displayable<T> for Value<T>
where T: Debug + Display + Send + 'static,

source§

impl<T> Displayable<T> for Dynamic<T>
where T: Debug + Display + Send + 'static,

source§

impl<T> Displayable<T> for DynamicReader<T>
where T: Debug + Display + Send + 'static,

source§

impl<T> Displayable<T> for T
where T: Debug + Display + Send + 'static,