transforms 1.4.1

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
use thiserror::Error;

/// Error type for timestamp and time-point operations.
#[derive(Error, Debug)]
pub enum TimeError {
    #[error("Duration underflow")]
    DurationUnderflow,
    #[error("Duration overflow")]
    DurationOverflow,
    #[error("Conversion to seconds lost accuracy")]
    AccuracyLoss,
}

#[deprecated(since = "1.2.0", note = "use time::TimeError instead")]
pub type TimestampError = TimeError;