pub struct Switch {
pub checked: bool,
pub disabled: bool,
pub size: SwitchSize,
pub label: String,
pub class: String,
}Fields§
§checked: bool§disabled: bool§size: SwitchSize§label: String§class: StringImplementations§
Source§impl Switch
impl Switch
pub fn new() -> Switch
pub fn checked(self, checked: bool) -> Switch
pub fn disabled(self, disabled: bool) -> Switch
pub fn size(self, size: SwitchSize) -> Switch
pub fn label(self, label: String) -> Switch
pub fn class(self, class: String) -> Switch
pub fn render(&self) -> String
Trait Implementations§
impl StructuralPartialEq for Switch
Auto Trait Implementations§
impl Freeze for Switch
impl RefUnwindSafe for Switch
impl Send for Switch
impl Sync for Switch
impl Unpin for Switch
impl UnwindSafe for Switch
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