search_core/lib.rs
1//! # Search core
2//!
3//! Small shared traits for planning and search crates.
4//!
5//! ## Planned scope
6//!
7//! - Only traits that at least two independent search crates need
8//! - Path costs, state spaces and search statistics as they become shared
9//!
10//! ## Status
11//!
12//! Pre-release. Version 0.0.0 reserves the name; the API is not started yet and will change.
13//!
14//! Repository: <https://github.com/sunsided/search-core>
15
16#![no_std]
17
18/// A path cost that can be summed and compared.
19pub trait Cost: Copy + Ord + core::ops::Add<Output = Self> {
20 /// The cost of the empty path.
21 const ZERO: Self;
22}