pub type CostResult<T> = Result<T, CostError>;
Type of result for the cost calculation
pub enum CostResult<T> { Ok(T), Err(CostError), }
Contains the success value
Contains the error value