transforms 2.0.0-beta.4

A transform library to track reference frames and provide transforms between them.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

/// Error type for timestamp and time-point operations.
#[derive(Error, Debug)]
#[non_exhaustive]
pub enum TimeError {
    /// Subtracting would produce a time before the representable range.
    #[error("duration underflow")]
    DurationUnderflow,
    /// Adding would produce a time beyond the representable range.
    #[error("duration overflow")]
    DurationOverflow,
    /// Converting to seconds could not be done exactly.
    #[error("conversion to seconds lost accuracy")]
    AccuracyLoss,
}