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

Function cpp_ty_fmt_blueprint_impl

crates/codegen/src/unrealcpp.rs:6688–6705  ·  view source on GitHub ↗
(
    module_prefix: &'a str,
    module: &'a ModuleDef,
    ty: &'a AlgebraicTypeUse,
    module_name: &'a str,
)

Source from the content-addressed store, hash-verified

6686}
6687
6688fn cpp_ty_fmt_blueprint_impl<'a>(
6689 module_prefix: &'a str,
6690 module: &'a ModuleDef,
6691 ty: &'a AlgebraicTypeUse,
6692 module_name: &'a str,
6693) -> impl fmt::Display + 'a {
6694 fmt_fn(move |f| match ty {
6695 AlgebraicTypeUse::Array(elem) => {
6696 let elem_type = cpp_ty_fmt_with_module(module_prefix, module, elem, module_name).to_string();
6697 write!(f, "TArray<{elem_type}>")
6698 }
6699 // For all other types, use the regular implementation
6700 _ => {
6701 let display_obj = cpp_ty_fmt_with_module(module_prefix, module, ty, module_name);
6702 write!(f, "{display_obj}")
6703 }
6704 })
6705}
6706
6707fn cpp_ty_fmt_impl<'a>(
6708 module_prefix: &'a str,

Callers 1

Calls 3

cpp_ty_fmt_with_moduleFunction · 0.85
fmt_fnFunction · 0.70
to_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…