cidre 0.13.0

Apple frameworks bindings for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd)]
#[repr(transparent)]
pub struct Boolean(pub i32);

impl Boolean {
    pub const FALSE: Self = Self(0);
    pub const TRUE: Self = Self(1);
}

impl From<bool> for Boolean {
    #[inline]
    fn from(v: bool) -> Self {
        if v { Self::TRUE } else { Self::FALSE }
    }
}