cudf 0.3.0

Safe Rust bindings for NVIDIA libcudf -- GPU-accelerated DataFrame operations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! String wrap operations.

use crate::column::Column;
use crate::error::{CudfError, Result};

impl Column {
    /// Wrap long strings by inserting newlines at whitespace boundaries.
    ///
    /// Lines will be no longer than `width` characters where possible.
    pub fn str_wrap(&self, width: i32) -> Result<Column> {
        let result = cudf_cxx::strings::wrap::ffi::str_wrap(&self.inner, width)
            .map_err(CudfError::from_cxx)?;
        Ok(Column { inner: result })
    }
}