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] -
trueifTis a reference type,falseotherwise.
Examples
use std::intrinsics::is_reference_type;
fn foo() {
let a = 1;
assert(is_reference_type(a))
}