MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / strip_const_pointer

Function strip_const_pointer

src/program/gadget.rs:811–817  ·  view source on GitHub ↗
(ty: &str)

Source from the content-addressed store, hash-verified

809 }
810
811 fn strip_const_pointer(ty: &str) -> &str {
812 let ty = ty
813 .strip_prefix("FuzzConstPointer<")
814 .unwrap_or_else(|| panic!("expect a const pointer, but get: {ty}"));
815 ty.strip_suffix('>')
816 .unwrap_or_else(|| panic!("const pointer should end with '>', get: {ty}"))
817 }
818
819 fn strip_mut_pointer(ty: &str) -> &str {
820 let ty = ty

Callers 1

get_sized_pointer_innerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected