wavers 1.2.1

A library for reading and writing wav files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Module containing the error types for Wavers
use thiserror::Error;

pub type WaversResult<T> = Result<T, WaversError>;

/// Error types for Wavers
#[derive(Error, Debug)]
pub enum WaversError {
    #[error("Invalid type specified: {0}")]
    InvalidType(String),
    #[error("IO error with file")]
    IOError(#[from] std::io::Error),
    #[cfg(feature = "ndarray")]
    #[error("IO error with ndarray")]
    NdArrayError(#[from] ndarray::ShapeError),
}