motionloom 0.1.0

MotionLoom DSL parser and renderer for video effects, scene graphs, motion graphics, and world graphs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::error::{GraphParseError, RuntimeCompileError};

#[derive(Debug, thiserror::Error)]
pub enum MotionLoomProcessError {
    #[error(transparent)]
    Parse(#[from] GraphParseError),
    #[error(transparent)]
    RuntimeCompile(#[from] RuntimeCompileError),
    #[error("process graph error: {message}")]
    Graph { message: String },
    #[error("process runtime error: {message}")]
    Runtime { message: String },
}

pub type ProcessError = MotionLoomProcessError;
pub type ProcessGraphError = MotionLoomProcessError;
pub type ProcessParseError = GraphParseError;
pub type ProcessRuntimeError = RuntimeCompileError;