windows_gen 0.14.1

Code generation for the windows crate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

#[derive(Clone)]
pub struct ModuleRef(pub Row);

impl ModuleRef {
    pub fn name(&self) -> &'static str {
        self.0.str(0)
    }
}

impl std::fmt::Debug for ModuleRef {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}", self.name())
    }
}