blob: 7a6ec7de3970b2662ad55a6e5ac04d8bfd16e79a [file] [log] [blame]
//! 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)
}
}