1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use super::*;
#[derive(Clone)]
pub struct TypeRef(pub Row);
impl TypeRef {
pub fn name(&self) -> &'static str {
self.0.str(1)
}
pub fn namespace(&self) -> &'static str {
self.0.str(2)
}
pub fn type_name(&self) -> TypeName {
TypeName::new(self.0.str(2), self.0.str(1))
}
}