[go: up one dir, main page]

stdweb 0.3.0

A standard library for the client-side Web
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(feature = "nightly")]
pub fn type_name< T >() -> &'static str {
    use std::intrinsics;
    unsafe {
        intrinsics::type_name::< T >()
    }
}

#[cfg(not(feature = "nightly"))]
pub fn type_name< T >() -> &'static str {
    "<Rust type>"
}