to_unit/
lib.rs

1/// Any type -> ()
2pub trait ToUnit
3{
4 /// Any type -> ()
5 fn to_unit(&self) {}
6}
7
8/// Any type -> ()
9impl<T> ToUnit for T {}
10
11/// Any type -> ()
12/// Same to `to_unit::ToUnit`, but it's type more easily.
13pub trait __
14{
15 /// Any type -> ()
16 fn __(&self) {}
17}
18
19/// Any type -> ()
20impl<T> __ for T {}