pub enum SegmentedSize {
Small,
Medium,
Large,
}Expand description
Size variants for SegmentedControl.
Sizes scale font, padding, track inset, and corner radii together so a segmented control sits naturally next to other elegance controls of the same size class.
Variants§
Small
Compact, for toolbars and tight headers.
Medium
Default size.
Large
Chunkier — pairs with ButtonSize::Large
in mixed action rows.
Trait Implementations§
Source§impl Clone for SegmentedSize
impl Clone for SegmentedSize
Source§fn clone(&self) -> SegmentedSize
fn clone(&self) -> SegmentedSize
Returns a duplicate of the value. Read more
1.0.0 · 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 SegmentedSize
impl Debug for SegmentedSize
Source§impl Default for SegmentedSize
impl Default for SegmentedSize
Source§fn default() -> SegmentedSize
fn default() -> SegmentedSize
Returns the “default value” for a type. Read more
Source§impl PartialEq for SegmentedSize
impl PartialEq for SegmentedSize
impl Copy for SegmentedSize
impl Eq for SegmentedSize
impl StructuralPartialEq for SegmentedSize
Auto Trait Implementations§
impl Freeze for SegmentedSize
impl RefUnwindSafe for SegmentedSize
impl Send for SegmentedSize
impl Sync for SegmentedSize
impl Unpin for SegmentedSize
impl UnsafeUnpin for SegmentedSize
impl UnwindSafe for SegmentedSize
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