Trait relm4::prelude::WidgetRef

source ·
pub trait WidgetRef {
    // Required method
    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§

source

fn widget_ref(&self) -> &Widget

Returns a reference to a widget.

Like AsRef::as_ref it will auto-dereference.

Implementors§