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§fn clone(&self) -> ButtonContent
fn clone(&self) -> ButtonContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ButtonContent
impl Debug for ButtonContent
Source§impl Default for ButtonContent
impl Default for ButtonContent
Source§fn default() -> ButtonContent
fn default() -> ButtonContent
Returns the “default value” for a type. Read more
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