(ty: &Type)
| 1071 | } |
| 1072 | |
| 1073 | pub fn is_primitive(ty: &Type) -> bool { |
| 1074 | matches!( |
| 1075 | ty, |
| 1076 | Type::U8 |
| 1077 | | Type::S8 |
| 1078 | | Type::U16 |
| 1079 | | Type::S16 |
| 1080 | | Type::U32 |
| 1081 | | Type::S32 |
| 1082 | | Type::U64 |
| 1083 | | Type::S64 |
| 1084 | | Type::F32 |
| 1085 | | Type::F64 |
| 1086 | ) |
| 1087 | } |
| 1088 | |
| 1089 | /// Group the specified functions by resource (or `None` for freestanding functions). |
| 1090 | /// |
no outgoing calls
no test coverage detected