ux-components 0.1.3

Backend agnostic GUI framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// resolve(Set<MaterialState> states) -> T
// Returns a value of type T that depends on states.
pub struct MaterialStateProperty<T: Default> {
    pub val: T,
}

impl<T: Default> Default for MaterialStateProperty<T> {
    fn default() -> Self {
        Self {
            val: Default::default(),
        }
    }
}