Skip to main content

ButtonExt

Trait ButtonExt 

Source
pub trait ButtonExt {
    // Required method
    fn button(self) -> Button;
}
Expand description

A trait that adds a button method to any type that implements IntoView.

Required Methods§

Source

fn button(self) -> Button

Create a Button from the parent.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ButtonExt for T
where T: IntoView + 'static,