Enum ui2::ButtonOrIconButton
source · pub enum ButtonOrIconButton {
Button(Button),
IconButton(IconButton),
}
Expand description
Provides the flexibility to use either a standard button or an icon button in a given context.
Variants§
Button(Button)
IconButton(IconButton)
Trait Implementations§
source§impl From<Button> for ButtonOrIconButton
impl From<Button> for ButtonOrIconButton
source§impl From<IconButton> for ButtonOrIconButton
impl From<IconButton> for ButtonOrIconButton
source§fn from(value: IconButton) -> Self
fn from(value: IconButton) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ButtonOrIconButton
impl !Send for ButtonOrIconButton
impl !Sync for ButtonOrIconButton
impl Unpin for ButtonOrIconButton
impl !UnwindSafe for ButtonOrIconButton
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more