mokuya 0.0.7

Generic procedural macro helpers for parsing, type analysis, and derive macro generation.
Documentation
1
2
3
4
5
use syn::Type;

pub fn is_tuple(ty: &Type) -> bool {
    matches!(ty, Type::Tuple(_))
}