Skip to content

Commit 02bdc60

Browse files
committed
first instance of custom bindings
1 parent c6e02ec commit 02bdc60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+12170
-0
lines changed

src/bindings/R.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* automatically generated by rust-bindgen 0.71.1 */
2+
3+
/* OS: unix */
4+
/* Platform: aarch64-apple-darwin20 */
5+
/* rustc 1.87.0-nightly (be73c1f46 2025-03-21) */
6+
/* R version: 4.6.0 */
7+
8+
unsafe extern "C" {
9+
pub fn R_FlushConsole();
10+
#[doc = " always declared, but only usable under Win32 and Aqua"]
11+
pub fn R_ProcessEvents();
12+
}

src/bindings/R_ext/Altrep.rs

Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
/* automatically generated by rust-bindgen 0.71.1 */
2+
3+
/* OS: unix */
4+
/* Platform: aarch64-apple-darwin20 */
5+
/* rustc 1.87.0-nightly (be73c1f46 2025-03-21) */
6+
/* R version: 4.6.0 */
7+
8+
pub type R_altrep_UnserializeEX_method_t = ::std::option::Option<
9+
unsafe extern "C" fn(
10+
arg1: SEXP,
11+
arg2: SEXP,
12+
arg3: SEXP,
13+
arg4: ::std::os::raw::c_int,
14+
arg5: ::std::os::raw::c_int,
15+
) -> SEXP,
16+
>;
17+
pub type R_altrep_Unserialize_method_t =
18+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: SEXP) -> SEXP>;
19+
pub type R_altrep_Serialized_state_method_t =
20+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> SEXP>;
21+
pub type R_altrep_DuplicateEX_method_t =
22+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
23+
pub type R_altrep_Duplicate_method_t =
24+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
25+
pub type R_altrep_Inspect_method_t = ::std::option::Option<
26+
unsafe extern "C" fn(
27+
arg1: SEXP,
28+
arg2: ::std::os::raw::c_int,
29+
arg3: ::std::os::raw::c_int,
30+
arg4: ::std::os::raw::c_int,
31+
arg5: ::std::option::Option<
32+
unsafe extern "C" fn(
33+
arg1: SEXP,
34+
arg2: ::std::os::raw::c_int,
35+
arg3: ::std::os::raw::c_int,
36+
arg4: ::std::os::raw::c_int,
37+
),
38+
>,
39+
) -> Rboolean,
40+
>;
41+
pub type R_altrep_Length_method_t =
42+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> R_xlen_t>;
43+
pub type R_altvec_Dataptr_method_t = ::std::option::Option<
44+
unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> *mut ::std::os::raw::c_void,
45+
>;
46+
pub type R_altvec_Dataptr_or_null_method_t =
47+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> *const ::std::os::raw::c_void>;
48+
pub type R_altvec_Extract_subset_method_t =
49+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: SEXP, arg3: SEXP) -> SEXP>;
50+
pub type R_altinteger_Elt_method_t = ::std::option::Option<
51+
unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> ::std::os::raw::c_int,
52+
>;
53+
pub type R_altinteger_Get_region_method_t = ::std::option::Option<
54+
unsafe extern "C" fn(
55+
arg1: SEXP,
56+
arg2: R_xlen_t,
57+
arg3: R_xlen_t,
58+
arg4: *mut ::std::os::raw::c_int,
59+
) -> R_xlen_t,
60+
>;
61+
pub type R_altinteger_Is_sorted_method_t =
62+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
63+
pub type R_altinteger_No_NA_method_t =
64+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
65+
pub type R_altinteger_Sum_method_t =
66+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
67+
pub type R_altinteger_Min_method_t =
68+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
69+
pub type R_altinteger_Max_method_t =
70+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
71+
pub type R_altreal_Elt_method_t =
72+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> f64>;
73+
pub type R_altreal_Get_region_method_t = ::std::option::Option<
74+
unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t, arg3: R_xlen_t, arg4: *mut f64) -> R_xlen_t,
75+
>;
76+
pub type R_altreal_Is_sorted_method_t =
77+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
78+
pub type R_altreal_No_NA_method_t =
79+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
80+
pub type R_altreal_Sum_method_t =
81+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
82+
pub type R_altreal_Min_method_t =
83+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
84+
pub type R_altreal_Max_method_t =
85+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
86+
pub type R_altlogical_Elt_method_t = ::std::option::Option<
87+
unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> ::std::os::raw::c_int,
88+
>;
89+
pub type R_altlogical_Get_region_method_t = ::std::option::Option<
90+
unsafe extern "C" fn(
91+
arg1: SEXP,
92+
arg2: R_xlen_t,
93+
arg3: R_xlen_t,
94+
arg4: *mut ::std::os::raw::c_int,
95+
) -> R_xlen_t,
96+
>;
97+
pub type R_altlogical_Is_sorted_method_t =
98+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
99+
pub type R_altlogical_No_NA_method_t =
100+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
101+
pub type R_altlogical_Sum_method_t =
102+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
103+
pub type R_altraw_Elt_method_t =
104+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> Rbyte>;
105+
pub type R_altraw_Get_region_method_t = ::std::option::Option<
106+
unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t, arg3: R_xlen_t, arg4: *mut Rbyte) -> R_xlen_t,
107+
>;
108+
pub type R_altcomplex_Elt_method_t =
109+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> Rcomplex>;
110+
pub type R_altcomplex_Get_region_method_t = ::std::option::Option<
111+
unsafe extern "C" fn(
112+
arg1: SEXP,
113+
arg2: R_xlen_t,
114+
arg3: R_xlen_t,
115+
arg4: *mut Rcomplex,
116+
) -> R_xlen_t,
117+
>;
118+
pub type R_altstring_Elt_method_t =
119+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> SEXP>;
120+
pub type R_altstring_Set_elt_method_t =
121+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t, arg3: SEXP)>;
122+
pub type R_altstring_Is_sorted_method_t =
123+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
124+
pub type R_altstring_No_NA_method_t =
125+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
126+
pub type R_altlist_Elt_method_t =
127+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> SEXP>;
128+
pub type R_altlist_Set_elt_method_t =
129+
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t, arg3: SEXP)>;
130+
#[repr(C)]
131+
pub struct R_altrep_class_t {
132+
pub ptr: SEXP,
133+
}
134+
unsafe extern "C" {
135+
pub fn R_new_altrep(aclass: R_altrep_class_t, data1: SEXP, data2: SEXP) -> SEXP;
136+
pub fn R_make_altstring_class(
137+
cname: *const ::std::os::raw::c_char,
138+
pname: *const ::std::os::raw::c_char,
139+
info: *mut DllInfo,
140+
) -> R_altrep_class_t;
141+
pub fn R_make_altinteger_class(
142+
cname: *const ::std::os::raw::c_char,
143+
pname: *const ::std::os::raw::c_char,
144+
info: *mut DllInfo,
145+
) -> R_altrep_class_t;
146+
pub fn R_make_altreal_class(
147+
cname: *const ::std::os::raw::c_char,
148+
pname: *const ::std::os::raw::c_char,
149+
info: *mut DllInfo,
150+
) -> R_altrep_class_t;
151+
pub fn R_make_altlogical_class(
152+
cname: *const ::std::os::raw::c_char,
153+
pname: *const ::std::os::raw::c_char,
154+
info: *mut DllInfo,
155+
) -> R_altrep_class_t;
156+
pub fn R_make_altraw_class(
157+
cname: *const ::std::os::raw::c_char,
158+
pname: *const ::std::os::raw::c_char,
159+
info: *mut DllInfo,
160+
) -> R_altrep_class_t;
161+
pub fn R_make_altcomplex_class(
162+
cname: *const ::std::os::raw::c_char,
163+
pname: *const ::std::os::raw::c_char,
164+
info: *mut DllInfo,
165+
) -> R_altrep_class_t;
166+
pub fn R_make_altlist_class(
167+
cname: *const ::std::os::raw::c_char,
168+
pname: *const ::std::os::raw::c_char,
169+
info: *mut DllInfo,
170+
) -> R_altrep_class_t;
171+
pub fn R_altrep_inherits(x: SEXP, arg1: R_altrep_class_t) -> Rboolean;
172+
pub fn R_set_altrep_UnserializeEX_method(
173+
cls: R_altrep_class_t,
174+
fun: R_altrep_UnserializeEX_method_t,
175+
);
176+
pub fn R_set_altrep_Unserialize_method(
177+
cls: R_altrep_class_t,
178+
fun: R_altrep_Unserialize_method_t,
179+
);
180+
pub fn R_set_altrep_Serialized_state_method(
181+
cls: R_altrep_class_t,
182+
fun: R_altrep_Serialized_state_method_t,
183+
);
184+
pub fn R_set_altrep_DuplicateEX_method(
185+
cls: R_altrep_class_t,
186+
fun: R_altrep_DuplicateEX_method_t,
187+
);
188+
pub fn R_set_altrep_Duplicate_method(cls: R_altrep_class_t, fun: R_altrep_Duplicate_method_t);
189+
pub fn R_set_altrep_Coerce_method(cls: R_altrep_class_t, fun: R_altrep_Coerce_method_t);
190+
pub fn R_set_altrep_Inspect_method(cls: R_altrep_class_t, fun: R_altrep_Inspect_method_t);
191+
pub fn R_set_altrep_Length_method(cls: R_altrep_class_t, fun: R_altrep_Length_method_t);
192+
pub fn R_set_altvec_Dataptr_method(cls: R_altrep_class_t, fun: R_altvec_Dataptr_method_t);
193+
pub fn R_set_altvec_Dataptr_or_null_method(
194+
cls: R_altrep_class_t,
195+
fun: R_altvec_Dataptr_or_null_method_t,
196+
);
197+
pub fn R_set_altvec_Extract_subset_method(
198+
cls: R_altrep_class_t,
199+
fun: R_altvec_Extract_subset_method_t,
200+
);
201+
pub fn R_set_altinteger_Elt_method(cls: R_altrep_class_t, fun: R_altinteger_Elt_method_t);
202+
pub fn R_set_altinteger_Get_region_method(
203+
cls: R_altrep_class_t,
204+
fun: R_altinteger_Get_region_method_t,
205+
);
206+
pub fn R_set_altinteger_Is_sorted_method(
207+
cls: R_altrep_class_t,
208+
fun: R_altinteger_Is_sorted_method_t,
209+
);
210+
pub fn R_set_altinteger_No_NA_method(cls: R_altrep_class_t, fun: R_altinteger_No_NA_method_t);
211+
pub fn R_set_altinteger_Sum_method(cls: R_altrep_class_t, fun: R_altinteger_Sum_method_t);
212+
pub fn R_set_altinteger_Min_method(cls: R_altrep_class_t, fun: R_altinteger_Min_method_t);
213+
pub fn R_set_altinteger_Max_method(cls: R_altrep_class_t, fun: R_altinteger_Max_method_t);
214+
pub fn R_set_altreal_Elt_method(cls: R_altrep_class_t, fun: R_altreal_Elt_method_t);
215+
pub fn R_set_altreal_Get_region_method(
216+
cls: R_altrep_class_t,
217+
fun: R_altreal_Get_region_method_t,
218+
);
219+
pub fn R_set_altreal_Is_sorted_method(cls: R_altrep_class_t, fun: R_altreal_Is_sorted_method_t);
220+
pub fn R_set_altreal_No_NA_method(cls: R_altrep_class_t, fun: R_altreal_No_NA_method_t);
221+
pub fn R_set_altreal_Sum_method(cls: R_altrep_class_t, fun: R_altreal_Sum_method_t);
222+
pub fn R_set_altreal_Min_method(cls: R_altrep_class_t, fun: R_altreal_Min_method_t);
223+
pub fn R_set_altreal_Max_method(cls: R_altrep_class_t, fun: R_altreal_Max_method_t);
224+
pub fn R_set_altlogical_Elt_method(cls: R_altrep_class_t, fun: R_altlogical_Elt_method_t);
225+
pub fn R_set_altlogical_Get_region_method(
226+
cls: R_altrep_class_t,
227+
fun: R_altlogical_Get_region_method_t,
228+
);
229+
pub fn R_set_altlogical_Is_sorted_method(
230+
cls: R_altrep_class_t,
231+
fun: R_altlogical_Is_sorted_method_t,
232+
);
233+
pub fn R_set_altlogical_No_NA_method(cls: R_altrep_class_t, fun: R_altlogical_No_NA_method_t);
234+
pub fn R_set_altlogical_Sum_method(cls: R_altrep_class_t, fun: R_altlogical_Sum_method_t);
235+
pub fn R_set_altraw_Elt_method(cls: R_altrep_class_t, fun: R_altraw_Elt_method_t);
236+
pub fn R_set_altraw_Get_region_method(cls: R_altrep_class_t, fun: R_altraw_Get_region_method_t);
237+
pub fn R_set_altcomplex_Elt_method(cls: R_altrep_class_t, fun: R_altcomplex_Elt_method_t);
238+
pub fn R_set_altcomplex_Get_region_method(
239+
cls: R_altrep_class_t,
240+
fun: R_altcomplex_Get_region_method_t,
241+
);
242+
pub fn R_set_altstring_Elt_method(cls: R_altrep_class_t, fun: R_altstring_Elt_method_t);
243+
pub fn R_set_altstring_Set_elt_method(cls: R_altrep_class_t, fun: R_altstring_Set_elt_method_t);
244+
pub fn R_set_altstring_Is_sorted_method(
245+
cls: R_altrep_class_t,
246+
fun: R_altstring_Is_sorted_method_t,
247+
);
248+
pub fn R_set_altstring_No_NA_method(cls: R_altrep_class_t, fun: R_altstring_No_NA_method_t);
249+
pub fn R_set_altlist_Elt_method(cls: R_altrep_class_t, fun: R_altlist_Elt_method_t);
250+
pub fn R_set_altlist_Set_elt_method(cls: R_altrep_class_t, fun: R_altlist_Set_elt_method_t);
251+
}

0 commit comments

Comments
 (0)