1 2 3 4 5 6 7 8 9
use thiserror::Error; #[derive(Error, Debug, PartialEq, Eq, Clone, Hash)] pub enum CreateVAOError { #[error("No WebGL2RenderingContext was provided")] NoContext, #[error("The VAO returned from the WebGL2 context was None")] NoneWasReturned, }