pub struct Segment {
pub label: String,
pub icon: Option<View>,
pub on_click: Rc<dyn Fn()>,
pub enabled: bool,
}Expand description
A single segment definition for SegmentedButton.
Fields§
§label: String§icon: Option<View>§on_click: Rc<dyn Fn()>§enabled: boolAuto Trait Implementations§
impl !RefUnwindSafe for Segment
impl !Send for Segment
impl !Sync for Segment
impl !UnwindSafe for Segment
impl Freeze for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
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