Trait relm4::prelude::WidgetRef

source ·
pub trait WidgetRef {
    fn widget_ref(&self) -> &Widget;
}
Expand description

Get a reference to a widget.

This trait is an extension of AsRef that always returns &gtk::Widget.

Required Methods§

Returns a reference to a widget.

Like AsRef::as_ref it will auto-dereference.

Implementors§