mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 02:57:34 +00:00
3e2c517dd1
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;
|
|
}
|