Function std::intrinsics::is_reference_type
pub fn is_reference_type<T>() -> bool
Expand description
Returns whether a generic type T
is a reference type or not.
Returns
- [bool] -
true
ifT
is a reference type,false
otherwise.
Examples
use std::intrinsics::is_reference_type;
fn foo() {
let a = 1;
assert(is_reference_type(a))
}