MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / tuple

Function tuple

crates/lib/tests/serde.rs:107–114  ·  view source on GitHub ↗
(elems: impl IntoIterator<Item = (&'static str, AlgebraicType)>)

Source from the content-addressed store, hash-verified

105}
106
107fn tuple(elems: impl IntoIterator<Item = (&'static str, AlgebraicType)>) -> ProductType {
108 ProductType {
109 elements: elems
110 .into_iter()
111 .map(|(name, ty)| ProductTypeElement::new_named(ty, name))
112 .collect(),
113 }
114}
115fn enumm(elems: impl IntoIterator<Item = (&'static str, AlgebraicType)>) -> SumType {
116 SumType {
117 variants: elems

Callers 1

test_json_mappingsFunction · 0.85

Calls 3

collectMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…