aura-anim-iced 0.2.0

Iced-first animation primitives.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Errors that can occur during timeline playback.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum TimelinePlaybackError {
    /// The timeline has infinite duration and cannot be played.
    InfiniteTimeline,
}

impl std::fmt::Display for TimelinePlaybackError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::InfiniteTimeline => write!(f, "timeline has infinite duration"),
        }
    }
}

impl std::error::Error for TimelinePlaybackError {}