localize_it 2.4.0

Simple and fast library for localization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use proc_macro2::Ident;
use syn::Type;

pub struct Expression {
    pub name: Ident,
    pub r#type: Type,
}

impl Expression {
    pub fn decompose(&self) -> (&Ident, &Type) {
        (&self.name, &self.r#type)
    }
}