toggle

Function toggle 

Source
pub fn toggle(label: impl Into<String>) -> Switch
Expand description

Helper to create a labeled switch