cudf-cxx 0.2.0

cxx-based FFI bridge between Rust and NVIDIA libcudf C++ API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Bridge definitions for libcudf string wrap operations.

#[cxx::bridge(namespace = "cudf_shims")]
pub mod ffi {
    unsafe extern "C++" {
        include!("strings/wrap_shim.h");
        include!("column_shim.h");

        type OwnedColumn = crate::column::ffi::OwnedColumn;

        /// Wrap long strings by inserting newlines at whitespace boundaries.
        fn str_wrap(col: &OwnedColumn, width: i32) -> Result<UniquePtr<OwnedColumn>>;
    }
}