scovich commented on PR #8324: URL: https://github.com/apache/arrow-rs/pull/8324#issuecomment-3282596573
> * CON: Each impl would have to define _all_ trait fields and nearly all methods -- even the ones that are the same for every impl -- to avoid running afoul of the rust borrow checker. The same borrow checker issues are why every `ParentState` enum variant defines the same half dozen fields over and over, in addition to any variant-specific extra state. I just realized, I must have misunderstood something. The fact that `CustomParentState` approach actually _works_, especially the `ArrayBuilderState`, suggests that the borrow checker is only a problem if the mut references are being taken by different functions? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org