pub trait ToggleBuilder: Sized {
// Required method
fn enabled<M>(self, v: impl IntoReactive<bool, M>) -> Self;
}Expand description
Required Methods§
Sourcefn enabled<M>(self, v: impl IntoReactive<bool, M>) -> Self
fn enabled<M>(self, v: impl IntoReactive<bool, M>) -> Self
Whether the toggle is interactive (default true; false = disabled/grayed). Reactive,
e.g. .enabled(capability(Cap::TextSpellCheck) == Support::Native) to gray it out where a
backend can’t honor the thing it controls.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".