pub struct Button<Label, Action> { /* private fields */ }Expand description
A button component that can be configured with a label and an action.
Implementations§
Source§impl<Label, Action> Button<Label, Action>
impl<Label, Action> Button<Label, Action>
Sourcepub const fn style(self, style: ButtonStyle) -> Self
pub const fn style(self, style: ButtonStyle) -> Self
Sourcepub fn action<H, P>(self, action: H) -> Button<Label, IntoHandler<H, P, ()>>
pub fn action<H, P>(self, action: H) -> Button<Label, IntoHandler<H, P, ()>>
Sourcepub fn action_with<H, P, S>(
self,
state: &S,
action: H,
) -> Button<Label, IntoHandlerWithState<H, P, (), S>>
pub fn action_with<H, P, S>( self, state: &S, action: H, ) -> Button<Label, IntoHandlerWithState<H, P, (), S>>
Trait Implementations§
Source§impl<Label, Action> ConfigurableView for Button<Label, Action>
impl<Label, Action> ConfigurableView for Button<Label, Action>
impl<Label: Eq, Action: Eq> Eq for Button<Label, Action>
impl<Label, Action> StructuralPartialEq for Button<Label, Action>
Auto Trait Implementations§
impl<Label, Action> Freeze for Button<Label, Action>
impl<Label, Action> RefUnwindSafe for Button<Label, Action>where
Label: RefUnwindSafe,
Action: RefUnwindSafe,
impl<Label, Action> Send for Button<Label, Action>
impl<Label, Action> Sync for Button<Label, Action>
impl<Label, Action> Unpin for Button<Label, Action>
impl<Label, Action> UnwindSafe for Button<Label, Action>where
Label: UnwindSafe,
Action: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)