impls 1.0.3

Determine if a type implements a logical trait expression.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub struct True;
pub struct False;

impl True {
    pub const fn value(self) -> bool {
        true
    }
}

impl False {
    pub const fn value(self) -> bool {
        false
    }
}