#[cxx::bridge(namespace = "apache_datasketches_rs")]
pub mod ffi {
unsafe extern "C++" {
include!("tuple_generic_sketch_shim.h");
include!("tuple_generic_compact_shim.h");
include!("tuple_generic_intersection_shim.h");
type TupleGenericSketchShim = crate::tuple_generic::ffi::TupleGenericSketchShim;
type CompactTupleGenericSketchShim =
crate::tuple_generic::ffi::CompactTupleGenericSketchShim;
type TupleGenericIntersectionShim;
fn new_tuple_generic_intersection() -> UniquePtr<TupleGenericIntersectionShim>;
fn update_with_sketch(
self: Pin<&mut TupleGenericIntersectionShim>,
sketch: &TupleGenericSketchShim,
);
fn update_with_compact(
self: Pin<&mut TupleGenericIntersectionShim>,
sketch: &CompactTupleGenericSketchShim,
);
fn get_result(
self: &TupleGenericIntersectionShim,
ordered: bool,
) -> Result<UniquePtr<CompactTupleGenericSketchShim>>;
fn has_result(self: &TupleGenericIntersectionShim) -> bool;
}
}