🔧 Added rust utils, organized js/ts utils
This commit is contained in:
parent
7a55c03644
commit
ca3e7c506d
3 changed files with 5 additions and 0 deletions
5
utils/rust/utils.rs
Normal file
5
utils/rust/utils.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
pub fn print_type_of<T>(v: &str, _: &T) {
|
||||||
|
println!("type of {} :=> {}", v, std::any::type_name::<T>())
|
||||||
|
}
|
||||||
|
// example usage:
|
||||||
|
// print_type_of("title", &title);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue