MCPcopy Create free account
hub / github.com/Rust-API/Rust-API-Bypass-Checker / push_component_name

Function push_component_name

src/analysis/memory/utils.rs:286–305  ·  view source on GitHub ↗
(component_data: DefPathData, target: &mut String)

Source from the content-addressed store, hash-verified

284// }
285
286fn push_component_name(component_data: DefPathData, target: &mut String) {
287 use DefPathData::*;
288 match component_data {
289 TypeNs(name) | ValueNs(name) | MacroNs(name) | LifetimeNs(name) => {
290 target.push_str(name.as_str());
291 }
292 _ => target.push_str(match component_data {
293 CrateRoot => "crate_root",
294 Impl => "implement",
295 ForeignMod => "foreign",
296 Use => "use",
297 GlobalAsm => "global_asm",
298 Closure => "closure",
299 Ctor => "ctor",
300 AnonConst => "constant",
301 OpaqueTy => "opaque",
302 _ => unreachable!(),
303 }),
304 };
305}
306
307/// Returns false if any of the generic arguments are themselves generic
308pub fn are_concrete(gen_args: GenericArgsRef<'_>) -> bool {

Callers 2

qualified_type_nameFunction · 0.85
summary_key_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected