pub struct Switch { /* private fields */ }Implementations§
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
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