rpgassist 0.1.8

Simple assist traits, serde (de)serializers, etc.
Documentation
1
2
3
4
5
6
7
8
9
use std::any::type_name;
pub trait GetTypeName{
    fn type_name(&self) -> &'static str;
}
impl <T: ?Sized> GetTypeName for T {
    fn type_name(&self) -> &'static str {
        type_name::<T>()
    }
}