pub struct Radio { /* private fields */ }Expand description
One choice of a RadioGroup.
Implementations§
Source§impl Radio
impl Radio
pub fn new() -> Self
pub fn name(self, v: impl Into<String>) -> Self
pub fn checked(self, v: bool) -> Self
pub fn disabled(self, v: bool) -> Self
pub fn required(self, v: bool) -> Self
pub fn color(self, v: Color) -> Self
pub fn size(self, v: Size) -> Self
pub fn radius(self, v: Radius) -> Self
Sourcepub fn description(self, v: impl MaybeText) -> Self
pub fn description(self, v: impl MaybeText) -> Self
Secondary text under the label.
Sourcepub fn class(self, v: impl Into<String>) -> Self
pub fn class(self, v: impl Into<String>) -> Self
Extra classes for the outer element. They win over the defaults.
pub fn unstyled(self, v: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Radio
impl !Sync for Radio
impl !UnwindSafe for Radio
impl Forget for Radio
impl Freeze for Radio
impl Move for Radio
impl Send for Radio
impl Unpin for Radio
impl UnsafeUnpin 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