Skip to main content

dbc_codegen2/ir/
identifier.rs

1use crate::utils::ToUpperCamelCase;
2
3#[derive(Debug, Clone)]
4pub struct Identifier(pub String);
5
6impl Identifier {
7    pub fn raw(&self) -> &str {
8        &self.0
9    }
10
11    pub fn lower(&self) -> String {
12        self.0.to_lowercase()
13    }
14
15    pub fn upper_camel(&self) -> String {
16        self.0.to_upper_camelcase()
17    }
18}