//! Error and `Result` types.
//!
//! This crate uses a split error-handling policy:
//! - Configuration/data validation at the API boundary returns `Result`.
//! - Low-level hot-path methods (e.g. per-sample forward/backward) panic on misuse
//! (shape mismatches) via `assert!` / `assert_eq!`.
use fmt;
/// Errors returned by fallible constructors and high-level APIs.
/// Convenience alias used throughout the crate.
pub type Result<T> = Result;