Struct cursive::views::RadioGroup [−][src]
pub struct RadioGroup<T> { /* fields omitted */ }
Expand description
Group to coordinate multiple radio buttons.
A RadioGroup
is used to create and manage RadioButton
s.
A RadioGroup
can be cloned; it will keep pointing to the same group.
Implementations
Creates an empty group for radio buttons.
Adds a new button to the group.
The button will display label
next to it, and will embed value
.
Returns the id of the selected button.
Buttons are indexed in the order they are created, starting from 0.
Sets a callback to be used when the selection changes.
Adds a button, using the label itself as value.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for RadioGroup<T>
impl<T> !Send for RadioGroup<T>
impl<T> !Sync for RadioGroup<T>
impl<T> Unpin for RadioGroup<T>
impl<T> !UnwindSafe for RadioGroup<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.