You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today's implementation is able to handle only bare types (such as MyType) or references to bare types (&MyType and &mut MyType). I want to implement a function, which will recursively go through syn::Type instance and convert all references to Boxes.
In addition, function for recursively borrowing struct fields must be implemented.
Example:
// For function:fnfoo(a:u32,b:&MyType,(c,d):(&AnotherType,&muti64)){}// This struct and function will be generatedstruct__fuzz_struct_foo{a:u32,b:Box<MyType>,c:Box<AnotherType>,d:Box<i64>,}pubfn__fuzz_foo(mutinput:__fuzz_struct_foo){foo(input.a,&*input.b,(&*input.c,&mut*input.d);}
The text was updated successfully, but these errors were encountered:
Today's implementation is able to handle only bare types (such as
MyType
) or references to bare types (&MyType
and&mut MyType
). I want to implement a function, which will recursively go throughsyn::Type
instance and convert all references toBox
es.In addition, function for recursively borrowing struct fields must be implemented.
Example:
The text was updated successfully, but these errors were encountered: