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

Function strip_mut_pointer

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

Source from the content-addressed store, hash-verified

817 }
818
819 fn strip_mut_pointer(ty: &str) -> &str {
820 let ty = ty
821 .strip_prefix("FuzzMutPointer<")
822 .unwrap_or_else(|| panic!("expect mut pointer, but get: {ty}"));
823 ty.strip_suffix('>')
824 .unwrap_or_else(|| panic!("mut pointer should end with '>', but get: {ty}"))
825 }
826
827 fn strip_sized_layer(ty: &str) -> &str {
828 let ty = ty

Callers 1

get_sized_pointer_innerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected