pub struct ToolbarSegment {
pub title: String,
pub icon: Option<Icon>,
}Expand description
One choice inside a ToolbarItemKind::Segmented control.
Fields§
§title: StringThe segment’s name: its label where the platform shows text, its accessible name always.
icon: Option<Icon>Trait Implementations§
Source§impl Clone for ToolbarSegment
impl Clone for ToolbarSegment
Source§fn clone(&self) -> ToolbarSegment
fn clone(&self) -> ToolbarSegment
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 ToolbarSegment
impl Debug for ToolbarSegment
Source§impl PartialEq for ToolbarSegment
impl PartialEq for ToolbarSegment
impl StructuralPartialEq for ToolbarSegment
Auto Trait Implementations§
impl Freeze for ToolbarSegment
impl RefUnwindSafe for ToolbarSegment
impl Send for ToolbarSegment
impl Sync for ToolbarSegment
impl Unpin for ToolbarSegment
impl UnsafeUnpin for ToolbarSegment
impl UnwindSafe for ToolbarSegment
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