cartel-sqlite 0.22.0

SQLite driver for the dope runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(transparent)]
pub struct Code(i32);

impl Code {
    pub const fn new(code: i32) -> Self {
        Self(code)
    }

    pub const fn get(self) -> i32 {
        self.0
    }

    pub const fn primary(self) -> i32 {
        self.0 & 0xff
    }
}