pub struct Radio { /* private fields */ }Implementations§
Source§impl Radio
impl Radio
pub fn new(selected: bool, label: impl Into<String>) -> Self
pub fn disabled(self, d: bool) -> Self
Sourcepub fn selectable<'a, T: PartialEq>(
current: &'a mut T,
value: T,
label: impl Into<String>,
) -> SelectableRadio<'a, T>
pub fn selectable<'a, T: PartialEq>( current: &'a mut T, value: T, label: impl Into<String>, ) -> SelectableRadio<'a, T>
Convenience for radio groups: selects value into current on click.
Returns the Response; .clicked() is true when this option is
chosen.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Radio
impl RefUnwindSafe for Radio
impl Send for Radio
impl Sync for Radio
impl Unpin for Radio
impl UnsafeUnpin for Radio
impl UnwindSafe for Radio
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