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

Function get_sized_pointer_inner

src/program/gadget.rs:910–918  ·  view source on GitHub ↗

get pointer' inner, but retain the sized layer.

(ty: &str)

Source from the content-addressed store, hash-verified

908
909 /// get pointer' inner, but retain the sized layer.
910 pub fn get_sized_pointer_inner(ty: &str) -> Option<&str> {
911 if is_const_pointer_ty(ty) {
912 Some(strip_const_pointer(ty))
913 } else if is_mut_pointer_ty(ty) {
914 Some(strip_mut_pointer(ty))
915 } else {
916 None
917 }
918 }
919
920 /// get pointer's inner with sized layer stripped
921 pub fn get_pointer_inner(ty: &str) -> Option<&str> {

Callers 2

is_sized_array_tyFunction · 0.85
get_pointer_innerFunction · 0.85

Calls 4

is_const_pointer_tyFunction · 0.85
strip_const_pointerFunction · 0.85
is_mut_pointer_tyFunction · 0.85
strip_mut_pointerFunction · 0.85

Tested by

no test coverage detected