Trait AsRowItem

Source
pub trait AsRowItem {
    // Required method
    fn into_row_item(self) -> RowItem;
}
Expand description

Trait to allow various types to be converted into a RowItem.

Required Methods§

Implementations on Foreign Types§

Source§

impl<F: FnOnce() + Send + Sync + 'static> AsRowItem for (F, f32)

Allow (FnOnce, weight) to be a RowItem

Implementors§

Source§

impl AsRowItem for RowItem

Source§

impl<F: FnOnce() + Send + Sync + 'static> AsRowItem for F

Default conversion: a simple function closure becomes a RowItem without weight.