util-gpui-standalone 1.4.4

A collection of utility structs and functions used by Zed and GPUI
Documentation
1
2
3
4
5
6
7
pub const fn default_true() -> bool {
    true
}

pub fn is_default<T: Default + PartialEq>(value: &T) -> bool {
    *value == T::default()
}