blob: 7a6ec7de3970b2662ad55a6e5ac04d8bfd16e79a (
plain)
1
2
3
4
5
6
7
8
9
10
|
//! Contains some standard paths.
/// Return the path of the `discriminant` function, that is `::std::mem::discriminant`.
pub fn discriminant_path() -> syn::Path {
if cfg!(feature = "use_core") {
parse_quote!(::core::mem::discriminant)
} else {
parse_quote!(::std::mem::discriminant)
}
}
|