concision_core/ops/pad/error.rs
1/*
2 Appellation: error <module>
3 Contrib: FL03 <jo3mccain@icloud.com>
4*/
5
6pub type PadResult<T = ()> = Result<T, PadError>;
7
8#[derive(Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, thiserror::Error)]
9#[cfg_attr(
10 feature = "serde",
11 derive(serde::Deserialize, serde::Serialize),
12 serde(rename_all = "snake_case")
13)]
14pub enum PadError {
15 #[error("Inconsistent Dimensions: {0}")]
16 InconsistentDimensions(String),
17}