Returns type names with a specifiable number of module segments as a String
.
```rust
asserteq!( std::any::typename::
let tuples = vec![ (tynm::typename::namem::
tuples .iter() .foreach(|(left, right)| asserteq!(left, right));
```
The [std::any::type_name
] function stabilized in Rust 1.38 returns the fully qualified type
name with all module segments. This can be difficult to read in error messages, especially for
type-parameterized types.
Often, the simple type name is more readable, and enough to distinguish the type referenced in an error.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.