types/mod.rs

polars · crates/polars-arrow/src/types/mod.rs · rust · MIT
database, tag:knn-classified

! Sealed traits and implementations to handle all _physical types_ used in this crate. ! ! Most physical types used in this crate are native Rust types, such as `i32`. ! The trait [`NativeType`] describes the interfaces required by this crate to be conformant ! with Arrow. ! ! Ev

// Source: https://github.com/pola-rs/polars | License: MIT | Copyright 2025 Ritchie Vink
// Provided via justclaw.it.com; keep this notice with the code.
//! Sealed traits and implementations to handle all _physical types_ used in this crate.
//!
//! Most physical types used in this crate are native Rust types, such as `i32`.
//! The trait [`NativeType`] describes the interfaces required by this crate to be conformant
//! with Arrow.
//!
//! Every implementation of [`NativeType`] has an associated variant in [`PrimitiveType`],
//! available via [`NativeType::PRIMITIVE`].
//! Combined, these allow structs generic over [`NativeType`] to be trait objects downcastable
//! to concrete implementations based on the matched [`NativeType::PRIMITIVE`] variant.
//!
//! Another important trait in thi

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key