1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
use crate::utils::types;


use std::fmt::{Debug, Display, Formatter, Result};


pub struct Log<T> (T);


impl<T> Debug for Log<T> {
	fn fmt(&self, f: &mut Formatter<'_>) -> Result {
		write!(f, "{}", types::get_type_name_by_type(&self))
	}
}


impl<T> Display for Log<T> {
  fn fmt(&self, f: &mut Formatter<'_>) -> Result {
		write!(f, "{}", types::get_type_name_by_type(&self))
  }
}