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 >k::Widget.
Required Methods§
sourcefn widget_ref(&self) -> &Widget
fn widget_ref(&self) -> &Widget
Returns a reference to a widget.
Like AsRef::as_ref it will auto-dereference.