Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

&dyn Composite as arg/ret #1718

Open
workingjubilee opened this issue May 24, 2024 · 0 comments
Open

&dyn Composite as arg/ret #1718

workingjubilee opened this issue May 24, 2024 · 0 comments

Comments

@workingjubilee
Copy link
Member

So... this might sound a bit weird, but, I think it's possible for there to be a trait that describes all composite types, that works kind of like PgHeapTuple does now, but also incorporates the ability to have "immediate access" fields in a known layout if you successfully .downcast_composite::<T>(), and people can ask for what essentially is a kind of Result<T, &dyn Composite> to their function.

This is a bigger change than I intend to implement immediately, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant