diesel_codegen 0.16.1

Custom derive and procedural macros for Diesel
Documentation
1
2
3
4
5
6
7
8
9
use syn::{Ident, Ty, Path};

pub fn ty_ident(ident: Ident) -> Ty {
    ty_path(ident.into())
}

pub fn ty_path(path: Path) -> Ty {
    Ty::Path(None, path)
}