1 | use super::*; |
---|---|
2 | |
3 | impl std::fmt::Debug for Param { |
4 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
5 | f.debug_tuple(name:"Param").field(&self.name()).finish() |
6 | } |
7 | } |
8 | |
9 | impl Param { |
10 | pub fn flags(&self) -> ParamAttributes { |
11 | ParamAttributes(self.usize(column:0) as u16) |
12 | } |
13 | |
14 | pub fn sequence(&self) -> u16 { |
15 | self.usize(column:1) as u16 |
16 | } |
17 | |
18 | pub fn name(&self) -> &'static str { |
19 | self.str(column:2) |
20 | } |
21 | } |
22 |