
This PR adds a new `Disableable` trait to use for elements that are capable of being disabled. Release Notes: - N/A
5 lines
166 B
Rust
5 lines
166 B
Rust
/// A trait for elements that can be disabled.
|
|
pub trait Disableable {
|
|
/// Sets whether the element is disabled.
|
|
fn disabled(self, disabled: bool) -> Self;
|
|
}
|