winrt_gen 0.7.2

Code generation for the winrt crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::blob::Blob;
use crate::row::Row;
use crate::TypeReader;

#[derive(Copy, Clone, PartialEq, PartialOrd, Eq, Ord)]
pub struct Constant(pub Row);

impl Constant {
    pub fn value_type(self, reader: &TypeReader) -> u32 {
        reader.u32(self.0, 0)
    }

    pub fn value(self, reader: &TypeReader) -> Blob {
        reader.blob(self.0, 2)
    }
}