wgsldoc 1.0.0

Documentation generator for WGSL shaders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Module defining custom error types for the documentation generator.
//! This includes errors related to WGSL parsing and I/O operations.

use thiserror::Error;

use crate::parser::error::ParsingError;

/// Custom error type for the documentation generator.
#[derive(Debug, Error)]
pub enum Error {
    /// WGSL parsing error.
    #[error("WGSL parsing error")]
    ParsingError(#[from] ParsingError),
    /// I/O error.
    #[error("I/O error")]
    IoError(#[from] std::io::Error),
}