frc-value 0.1.4

A common value interface for rust frc apps
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

use crate::FrcType;

#[derive(Debug, Clone)]
pub enum CastErrorReason {
    Type,
    Overflow,
    Underflow
}


#[derive(Debug, Clone, Error)]
pub enum FrcValueError {
    #[error("Could not cast {0} variant to {1} type ({2:?})")]
    InvalidCast(FrcType, &'static str, CastErrorReason)
}