Skip to main content

fastmob_core/
lib.rs

1#![allow(clippy::too_many_arguments, clippy::type_complexity)]
2
3//! Low-level, allocation-conscious Rust kernels for mobility analysis.
4//!
5//! `fastmob-core` accepts primitive slices and returns Rust collections. It is
6//! the compute layer used by the `fastmob` Python package and the
7//! `fastmob-rs` DataFrame API, but it can also be used directly when callers
8//! own their data layout.
9//!
10//! # Example
11//!
12//! ```
13//! use fastmob_core::utils::haversine::haversine_km;
14//!
15//! let paris_to_london = haversine_km(48.8566, 2.3522, 51.5074, -0.1278);
16//! assert!((paris_to_london - 343.0).abs() < 2.0);
17//! ```
18//!
19//! # Compatibility
20//!
21//! The crate follows Cargo's pre-1.0 semantic-versioning conventions. Public
22//! APIs are intended for direct use, but new capabilities and breaking changes
23//! may be introduced in a minor release before version 1.0. The `*_impl`
24//! entry points are low-level kernels and expose the same compatibility policy.
25//!
26//! See the crate README for supported feature flags, input conventions, and
27//! third-party attribution notices.
28
29pub mod hierarchy;
30pub mod integration;
31pub mod measures;
32pub mod models;
33pub mod network;
34pub mod preprocessing;
35pub mod privacy;
36pub mod social;
37pub mod trajectory;
38pub mod utils;