Skip to main content

segment

Function segment 

Source
pub fn segment<T>(value: T) -> Segment<T>
Expand description

Create a segment reporting value when tapped/selected. Attach Segment::label and/or Segment::icon — a segment needs at least one (debug_assert!-checked by segmented_button; see the module docs’ Bounds section).