-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
There are two separate problems, listing them here in case we decide to implement it later.
First, same as in this example in serde: https://serde.rs/remote-derive.html, would be nice to provide a way to set up remote derives for foreign types.
Another problem is with containers, and the main one is Vec. Would be nice if we could provide a way to use other vec-like types. This could look e.g. like this (note that it would sort-of cover #72):
use fancy_crate::FancyVec;
use std::collections::VecDeque;
#[derive(ArrowField)]
struct Foo {
#[arrow(vec)]
vec_custom: Vec<i32, MyAlloc>,
#[arrow(vec(push = "push_back"))]
deque: VecDeque<i32>,
#[arrow(vec)]
vec_remote: FancyVec<i32>,
}ncpenke
Metadata
Metadata
Assignees
Labels
No labels