apache-datasketches-sys 0.2.1

Raw cxx bridge to Apache DataSketches C++ (do not use directly; see apache-datasketches)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::tuple_generic::ffi::{CompactTupleGenericSketchShim, TupleGenericSketchShim};

/// A borrowed reference to one of the two generic Tuple sketch shim types,
/// used to dispatch set-operation calls to the right C++ overload.
///
/// A plain Rust enum rather than a bridge type: cxx supports only
/// payload-free shared enums, and these variants carry references to opaque
/// C++ types.
pub enum TupleGenericInputRef<'a> {
    /// A mutable, update-only sketch.
    Sketch(&'a TupleGenericSketchShim),
    /// An immutable, compact sketch.
    Compact(&'a CompactTupleGenericSketchShim),
}