pub trait CustomListItem {
type Widget<'w>: Widget + 'w
where Self: 'w;
// Required method
fn as_widget<'a>(
&'a self,
theme: &Theme,
inline: bool,
is_highlighted: bool,
is_discarded: bool,
) -> (Self::Widget<'a>, Size);
}
Expand description
A trait for types that can be rendered inside a CustomList
Required Associated Types§
Required Methods§
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.