cosmic::widget::radio

Function radio

source
pub fn radio<'a, Message: Clone, V, F>(
    label: impl Into<Element<'a, Message, Theme, Renderer>>,
    value: V,
    selected: Option<V>,
    f: F,
) -> Radio<'a, Message, Renderer>
where V: Eq + Copy, F: FnOnce(V) -> Message,