Add a struct reinterpret helper that keeps scope

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      jextract generated struct wrappers currently require lifetime parameters for reinterpret, so users have to write `MyStruct.interp(ptr.reinterpret(MyStruct.sizeof()))`.
      Generate an overload that only takes size and reinterprets the segment without changing its existing scope.

            Assignee:
            Nizar Benalla
            Reporter:
            Nizar Benalla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: