pub struct ButtonContent {
pub title: String,
pub icon: Option<Icon>,
pub icon_only: bool,
}Expand description
The visible content and accessible title of a button with an icon.
Fields§
§title: StringAlso serves as the accessible name when only the icon is visible.
icon: Option<Icon>§icon_only: boolTrait Implementations§
Source§impl Clone for ButtonContent
impl Clone for ButtonContent
Source§impl Debug for ButtonContent
impl Debug for ButtonContent
Source§impl Default for ButtonContent
impl Default for ButtonContent
Source§impl PartialEq for ButtonContent
impl PartialEq for ButtonContent
impl StructuralPartialEq for ButtonContent
Auto Trait Implementations§
impl Freeze for ButtonContent
impl RefUnwindSafe for ButtonContent
impl Send for ButtonContent
impl Sync for ButtonContent
impl Unpin for ButtonContent
impl UnsafeUnpin for ButtonContent
impl UnwindSafe for ButtonContent
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