pub fn is_reference_type<T>() -> bool 
Expand description

Returns whether a generic type T is a reference type or not.

Returns

  • [bool] - true if T is a reference type, false otherwise.

Examples

use std::intrinsics::is_reference_type;

fn foo() {
    let a = 1;
    assert(is_reference_type(a))
}