macro_rules! format_data {
($data:ident, $($arg:tt)*) => { ... };
($data:ident : $data_ty:ty , $($arg:tt)*) => { ... };
}
Expand description
A Text
widget which formats a value from input
Examples:
use kas_widgets::Text;
let _: Text<i32, _> = kas_widgets::format_data!(data, "Data value: {data}");
let _ = kas_widgets::format_data!(data: &i32, "Data value: {data}");