pub struct SwitchPlugin;Expand description
Plugin registering the switch visual-sync + thumb-slide systems.
The toggle behavior itself (click / keyboard / bindings) ships with
crate::ControlsPlugin via the shared Toggleable path, exactly as
<checkbox> reuses it; crate::ControlsPlugin also wires these two
systems so a host that installs ControlsPlugin gets <switch> for
free. This standalone plugin exists for tests / hosts that want the
switch systems in isolation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SwitchPlugin
impl RefUnwindSafe for SwitchPlugin
impl Send for SwitchPlugin
impl Sync for SwitchPlugin
impl Unpin for SwitchPlugin
impl UnsafeUnpin for SwitchPlugin
impl UnwindSafe for SwitchPlugin
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
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.