MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / is_primitive

Function is_primitive

crates/csharp/src/world_generator.rs:1073–1087  ·  view source on GitHub ↗
(ty: &Type)

Source from the content-addressed store, hash-verified

1071}
1072
1073pub 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///

Callers 3

is_primative_listMethod · 0.85
name_with_qualifierMethod · 0.85
is_list_canonicalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected