peck-lib 1.0.1

A set of library and type functions.
Documentation
use std::fmt;

pub enum Message {
    Max19DecimalPlaces,
}

impl fmt::Display for Message {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "{}", match self {
            Self::Max19DecimalPlaces => "Warning: This function can only truncate to a maximum of 19 decimal places, truncating to maximum.",
        })
    }
}

pub enum Error {}

pub enum Warning {
    F64(f64, Message),
    F32(f32, Message),
}