pub fn button<S: Into<String>>(
        &mut self, value: T, label: S
    ) -> RadioButton<T> {
        let count = self.state.borrow().values.len();
        self.state.borrow_mut().values.push(Rc::new(value));
        RadioButton::new(Rc::clone(&self.state), count, label.into())
    }
/// Adds a new button to the group.
///
/// The button will display `label` next to it, and will embed `value`.
Adds a new button to the group.
The button will display `label` next to it, and will embed `value`.
Adds a new button to the group . The button will display ` label ` next to it and will embed ` value ` .
pub fn button<S: Into<String>>(
        &mut self, value: T, label: S
    ) -> RadioButton<T> {
        let count = self.state.borrow().values.len();
        self.state.borrow_mut().values.push(Rc::new(value));
        RadioButton::new(Rc::clone(&self.state), count, label.into())
    }
pub fn button < S : Into < String > > ( & mut self , value : T , label : S ) -> RadioButton < T > { let count = self . state . borrow ( ) . values . len ( ) ; self . state . borrow_mut ( ) . values . push ( Rc :: new ( value ) ) ; RadioButton :: new ( Rc :: clone ( & self . state ) , count , label . into ( ) ) }
Adds a new button to the group.
Adds a new button to the group .
&mut self
value
T
label
S
&mut self
value
T
label
S