typename

Build Status Latest Version Documentation

A compatible, safe and stable alternative to Rust's std::intrinsics::type_name intrinsic.

DEPRECATION NOTICE: This crate has been deprecated. The type_name intrinsic has been stablized in Rust 1.38. Users of this crate are asked to migrate to std::any::type_name.

Example

```rust extern crate typename;

use typename::TypeName;

fn main() { asserteq!(String::typename(), "std::string::String"); asserteq!(Vec::::typename(), "std::vec::Vec"); asserteq!([0, 1, 2].typename_of(), "[i32; 3]"); } ```

Contribute

typename is part of the Strymon project:

License

typename is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.