MCPcopy Create free account
hub / github.com/apache/fory / get_struct_name

Function get_struct_name

rust/fory-derive/src/object/util.rs:87–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87pub(super) fn get_struct_name() -> Option<String> {
88 MACRO_CONTEXT.with(|ctx| ctx.borrow().as_ref().map(|c| c.struct_name.clone()))
89}
90
91pub(super) fn is_debug_enabled() -> bool {
92 MACRO_CONTEXT.with(|ctx| {

Callers 5

gen_write_dataFunction · 0.85
is_forward_fieldFunction · 0.85

Calls 3

borrowMethod · 0.80
mapMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected