mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-20 23:50:25 +01:00
8e0e291bd5
Release Notes: - N/A
8 lines
142 B
Rust
8 lines
142 B
Rust
pub const fn default_true() -> bool {
|
|
true
|
|
}
|
|
|
|
pub fn is_default<T: Default + PartialEq>(value: &T) -> bool {
|
|
*value == T::default()
|
|
}
|