pub struct SegmentConfig {
pub label: String,
pub icon: Option<View>,
pub on_click: Rc<dyn Fn()>,
pub enabled: bool,
pub interaction_source: Option<MutableInteractionSource>,
}Expand description
Configuration for a single segment in SegmentedButton.
Fields§
§label: String§icon: Option<View>§on_click: Rc<dyn Fn()>§enabled: bool§interaction_source: Option<MutableInteractionSource>Trait Implementations§
Source§impl Clone for SegmentConfig
impl Clone for SegmentConfig
Source§fn clone(&self) -> SegmentConfig
fn clone(&self) -> SegmentConfig
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for SegmentConfig
impl !Send for SegmentConfig
impl !Sync for SegmentConfig
impl !UnwindSafe for SegmentConfig
impl Freeze for SegmentConfig
impl Unpin for SegmentConfig
impl UnsafeUnpin for SegmentConfig
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