docchi_intf/imp/util/
with_var.rs

1use docchi_core::structs::{VarType};
2
3pub(crate) fn with_var(t : &str, vt : VarType) -> String{
4    match vt{
5        VarType::Normal => t.to_string(),
6        VarType::Nullable => format!("NullOr<{}>", t),
7        VarType::Undefiable => format!("UndefOr<{}>", t),
8        VarType::UndefNullable => format!("Qv<{}>", t),
9    }
10}
11