Trait kiss_ui::base::Downcast
[−]
[src]
pub trait Downcast: Widget {
fn try_downcast(base: BaseWidget) -> Result<Self, BaseWidget> { ... }
}A trait describing a widget's ability to be downcast from BaseWidget.
Provided Methods
fn try_downcast(base: BaseWidget) -> Result<Self, BaseWidget>
Attempt to downcast base to the Self type,
returning Err(base) if unsuccessful.